Method: ActiveSupport::TimeWithZone#between?
- Defined in:
- lib/active_support/time_with_zone.rb
#between?(min, max) ⇒ Boolean
Returns true if the current object’s time is within the specified min
and max
time.
250 251 252 |
# File 'lib/active_support/time_with_zone.rb', line 250 def between?(min, max) utc.between?(min, max) end |