Module: Mongoid::Criteria::Queryable::Extensions::TimeWithZone
- Defined in:
- build/mongoid-7.3/lib/mongoid/criteria/queryable/extensions/time_with_zone.rb
Overview
This module contains additional time with zone behavior.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#__evolve_date__ ⇒ Time
Evolve the time as a date, UTC midnight.
-
#__evolve_time__ ⇒ Time
Evolve the time into a utc time.
Instance Method Details
#__evolve_date__ ⇒ Time
Evolve the time as a date, UTC midnight.
20 21 22 |
# File 'build/mongoid-7.3/lib/mongoid/criteria/queryable/extensions/time_with_zone.rb', line 20 def __evolve_date__ ::Time.utc(year, month, day, 0, 0, 0, 0) end |
#__evolve_time__ ⇒ Time
Evolve the time into a utc time.
32 33 34 |
# File 'build/mongoid-7.3/lib/mongoid/criteria/queryable/extensions/time_with_zone.rb', line 32 def __evolve_time__ utc end |