instance method
middle_of_day
Ruby on Rails 8.0.4
Since v4.1.16Signature
middle_of_day()
Returns a new Time representing the middle of the day (12:00)
Source
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 246
def middle_of_day
change(hour: 12)
end
Defined in activesupport/lib/active_support/core_ext/time/calculations.rb line 246
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Time