method
prev_week
v3.2.13 -
Show latest stable
- Class:
Date
prev_week(day = :monday)public
Returns a new Date/DateTime representing the given day in the previous week. Default is :monday. DateTime objects have their time set to 0:00.
prev_week(day = :monday)Returns a new Date/DateTime representing the given day in the previous week. Default is :monday. DateTime objects have their time set to 0:00.