Method: Time#prev_day
- Defined in:
- lib/active_support/core_ext/time/calculations.rb
#prev_day(days = 1) ⇒ Object
Returns a new time the specified number of days ago.
351 352 353 |
# File 'lib/active_support/core_ext/time/calculations.rb', line 351 def prev_day(days = 1) advance(days: -days) end |