Method: DateAndTime::Calculations#prev_day
- Defined in:
- lib/core_ext/date_and_time/calculations.rb
#prev_day ⇒ Object
Returns a new date/time representing the previous day.
20 21 22 |
# File 'lib/core_ext/date_and_time/calculations.rb', line 20 def prev_day advance(days: -1) end |