method

prev_week

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Calculations
prev_week(start_day = Date.beginning_of_week, same_time: false) public

Returns a new date/time representing the given day in the previous week. 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 0:00 unless same_time is true.

Show source
Register or log in to add new notes.