Module: Mongoid::Criteria::Queryable::Extensions::TimeWithZone
- Defined in:
- lib/mongoid/criteria/queryable/extensions/time_with_zone.rb
Overview
Adds query type-casting behavior to ActiveSupport::TimeWithZone class.
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.
16 17 18 |
# File 'lib/mongoid/criteria/queryable/extensions/time_with_zone.rb', line 16 def __evolve_date__ ::Time.utc(year, month, day, 0, 0, 0, 0) end |
#__evolve_time__ ⇒ Time
Evolve the time into a utc time.
26 27 28 |
# File 'lib/mongoid/criteria/queryable/extensions/time_with_zone.rb', line 26 def __evolve_time__ utc end |