module Mongoid::Extensions::Date
Constants
- EPOCH
Constant for epoch - used when passing invalid times.
@deprecated No longer used as a return value from mongoize passed
an invalid date string.
Public Instance Methods
__mongoize_time__()
click to toggle source
Convert the date into a time.
@example Convert the date to a time.
date.__mongoize_time__
@return [ Time ] The converted time.
@since 3.0.0
# File lib/mongoid/extensions/date.rb, line 19 def __mongoize_time__ ::Time.configured.local(year, month, day) end