Method: Time#next_year
- Defined in:
- lib/active_support/core_ext/time/calculations.rb
#next_year(years = 1) ⇒ Object
Returns a new time the specified number of years in the future.
376 377 378 |
# File 'lib/active_support/core_ext/time/calculations.rb', line 376 def next_year(years = 1) advance(years: years) end |