instance method
sunday
Ruby on Rails 6.0.6
Since v4.0.13Signature
sunday()
Returns Sunday of this week assuming that week starts on Monday. DateTime objects have their time set to 23:59:59.
Source
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 267
def sunday
end_of_week(:monday)
end
Defined in activesupport/lib/active_support/core_ext/date_and_time/calculations.rb line 267
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateAndTime::Calculations