Represents a number of months passed. Used for shifting Time
s by a specified number of months.
Time.local(2016, 2, 1) + 13.months # => 2017-03-01 00:00:00 Time.local(2016, 2, 29) + 2.years # => 2018-02-28 00:00:00
Returns a Time
that happens N months before now.
Returns a Time
that happens N months after now.
The number of months.
Struct
Value
Object
Object
© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/Time/MonthSpan.html