Class: Date
- Inherits:
-
Object
- Object
- Date
- Defined in:
- lib/time_of_day/core_ext.rb
Instance Method Summary collapse
Instance Method Details
#at(time_of_day) โ Object
[View source]
24 25 26 27 28 |
# 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 |