instance method
between?
Ruby on Rails 8.0.4
Since v2.2.3Signature
between?(min, max)
Returns true if the current object’s time is within the specified min and max time.
Parameters
-
minreq -
maxreq
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 239
def between?(min, max)
utc.between?(min, max)
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 239
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone