instance method
past?
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v4.0.13Signature
past?()
Tells whether the DateTime object’s datetime lies in the past
Source
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 17
def past?
self < ::DateTime.current
end
Defined in activesupport/lib/active_support/core_ext/date_time/calculations.rb line 17
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateTime