class Date

Public Instance Methods

at(time_of_day) click to toggle source
# File lib/time_of_day/core_ext.rb, line 24
def at(time_of_day)
  time_of_day = TimeOfDay.parse(time_of_day) if time_of_day.is_a?(String)
  zone = Time.zone || Time
  zone.local(year, month, day, time_of_day.hour, time_of_day.minute, time_of_day.second)
end