Method: Time#plus_year
- Defined in:
- lib/vpim/time.rb
#plus_year(years) ⇒ Object
Returns a new Time, years later than this time. Feb 29 of a leap year will be rounded up to Mar 1 if the target date is not a leap year.
19 20 21 |
# File 'lib/vpim/time.rb', line 19 def plus_year(years) Time.local(year + years, month, day, hour, min, sec, usec) end |