Method: Date#middle_of_day
- Defined in:
- activesupport/lib/active_support/core_ext/date/calculations.rb
#middle_of_day ⇒ Object Also known as: midday, noon, at_midday, at_noon, at_middle_of_day
Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00)
75 76 77 |
# File 'activesupport/lib/active_support/core_ext/date/calculations.rb', line 75 def middle_of_day in_time_zone.middle_of_day end |