instance method
middle_of_day
Ruby on Rails 8.0.4
Since v4.1.16Signature
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)
Source
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 75
def middle_of_day
in_time_zone.middle_of_day
end
Defined in activesupport/lib/active_support/core_ext/date/calculations.rb line 75
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Date