Method: Time#prev_month
- Defined in:
- lib/active_support/core_ext/time/calculations.rb
#prev_month(months = 1) ⇒ Object
Returns a new time the specified number of months ago.
361 362 363 |
# File 'lib/active_support/core_ext/time/calculations.rb', line 361 def prev_month(months = 1) advance(months: -months) end |