instance method
all_day
Ruby on Rails 7.0.10
Since v5.2.8.1Signature
all_day()
Returns a Range representing the whole day of the current date/time.
Source
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 300
def all_day
beginning_of_day..end_of_day
end
Defined in activesupport/lib/active_support/core_ext/date_and_time/calculations.rb line 300
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateAndTime::Calculations