Flowdock
method

prev_week

Importance_1
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: Calculations
prev_week(start_day = Date.beginning_of_week) 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.

Show source
Register or log in to add new notes.