Method: DateTime#ago
- Defined in:
- activesupport/lib/active_support/core_ext/date_time/calculations.rb
#ago(seconds) ⇒ Object
Returns a new DateTime representing the time a number of seconds ago. Do not use this method in combination with x.months, use months_ago instead!
109 110 111 |
# File 'activesupport/lib/active_support/core_ext/date_time/calculations.rb', line 109 def ago(seconds) since(-seconds) end |