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
25 26 27 28 29 30 31 |
# File 'lib/time_of_day/core_ext.rb', line 25 def at(time_of_day) return if time_of_day.nil? 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 |