Module: Mongoid::Criteria::Queryable::Extensions::Time
| Relationships & Source Files | |
| Namespace Children | |
|
Modules:
| |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
| |
| Defined in: | lib/mongoid/criteria/queryable/extensions/time.rb |
Overview
Adds query type-casting behavior to Time class.
Instance Method Summary
-
#__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.
# File 'lib/mongoid/criteria/queryable/extensions/time.rb', line 15
def __evolve_date__ ::Time.utc(year, month, day, 0, 0, 0, 0) end
#__evolve_time__ ⇒ Time
Evolve the time into a utc time.
# File 'lib/mongoid/criteria/queryable/extensions/time.rb', line 25
def __evolve_time__ getutc end