instance method
sunday
Ruby on Rails 8.0.4
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 290
def sunday
end_of_week(:monday)
end
Defined in activesupport/lib/active_support/core_ext/date_and_time/calculations.rb line 290
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateAndTime::Calculations