instance method
middle_of_day
Ruby on Rails 7.0.10
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 233
def middle_of_day
change(hour: 12)
end
Defined in activesupport/lib/active_support/core_ext/time/calculations.rb line 233
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Time