module Tod::DateExtensions
Public Instance Methods
at(time_of_day, time_zone=Tod::TimeOfDay.time_zone)
click to toggle source
Returns a local Time instance with this date and time_of_day Pass in time_zone to use ActiveSupport::TimeZone
# File lib/tod/date_extensions.rb, line 7 def at(time_of_day, time_zone=Tod::TimeOfDay.time_zone) time_zone.local year, month, day, time_of_day.hour, time_of_day.minute, time_of_day.second end
to_time_of_day()
click to toggle source
# File lib/tod/date_extensions.rb, line 11 def to_time_of_day Tod::TimeOfDay.new hour, minute, second end