Flowdock
method

prev_week

Importance_1
v6.0.0 - Show latest stable - 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.