Method: DateTime#since
- Defined in:
- activesupport/lib/active_support/core_ext/date_time/calculations.rb
#since(seconds) ⇒ Object Also known as: in
Returns a new DateTime representing the time a number of seconds since the instance time. Do not use this method in combination with x.months, use months_since instead!
116 117 118 |
# File 'activesupport/lib/active_support/core_ext/date_time/calculations.rb', line 116 def since(seconds) self + Rational(seconds, 86400) end |