instance method
ago
Ruby on Rails 7.2.3
Since v3.0.20Signature
ago(seconds)
Returns a new Time representing the time a number of seconds ago, this is basically a wrapper around the Numeric extension
Parameters
-
secondsreq
Source
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 213
def ago(seconds)
since(-seconds)
end
Defined in activesupport/lib/active_support/core_ext/time/calculations.rb line 213
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Time