instance method
since
Ruby on Rails 6.0.6
Since v3.0.20Signature
since(seconds)
Returns a new Time representing the time a number of seconds since the instance time
Parameters
-
secondsreq
Source
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 195
def since(seconds)
self + seconds
rescue
to_datetime.since(seconds)
end
Defined in activesupport/lib/active_support/core_ext/time/calculations.rb line 195
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Time