| Module | Origin::Extensions::Date |
| In: |
lib/origin/extensions/date.rb
|
This module contains additional date behaviour.
Evolve the date into a mongo friendly time, UTC midnight.
@example Evolve the date.
date.__evolve_date__
@return [ Time ] The date as a UTC time at midnight.
@since 1.0.0
Evolve the date into a time, which is always in the local timezone.
@example Evolve the date.
date.__evolve_time__
@return [ Time ] The date as a local time.
@since 1.0.0