instance method
since
Ruby on Rails 3.2.22.5
Since v3.0.20Signature
since(seconds)
Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) and then adds the specified number of seconds
Parameters
-
secondsreq
Source
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 68
def since(seconds)
to_time_in_current_zone.since(seconds)
end
Defined in activesupport/lib/active_support/core_ext/date/calculations.rb line 68
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Date