months method

Duration months([
  1. int value = 0
])

Returns a duration in months (assuming 30 days per month).

print(2.months()); // Output: 1440:00:00.000000

Implementation

Duration months([int value = 0]) => validate(value).months();