method
beginning_of_week
v3.2.8 -
Show latest stable
- Class:
Time
beginning_of_week(start_day = :monday)public
Returns a new Time representing the “start” of this week, week starts on start_day (default is :monday, i.e. Monday, 0:00).