module Origin::Extensions::Time
This module contains additional time behaviour.
Public Instance Methods
__evolve_date__()
click to toggle source
Evolve the time as a date, UTC midnight.
@example Evolve the time to a date query format.
time.__evolve_date__
@return [ Time ] The date at midnight UTC.
@since 1.0.0
# File lib/origin/extensions/time.rb, line 15 def __evolve_date__ ::Time.utc(year, month, day, 0, 0, 0, 0) end
__evolve_time__()
click to toggle source
Evolve the time into a utc time.
@example Evolve the time.
time.__evolve_time__
@return [ Time ] The time in UTC.
@since 1.0.0
# File lib/origin/extensions/time.rb, line 27 def __evolve_time__ utc end