method
end_of_week
v5.2.3 -
Show latest stable
- Class:
DateAndTime::Calculations
end_of_week(start_day = Date.beginning_of_week)public
Returns a new date/time representing the end of this week on the given day. Week is assumed to start on start_day, default is Date.beginning_of_week or config.beginning_of_week when set. DateTime objects have their time set to 23:59:59.