beginning-of-week ( timestamp -- new-timestamp )
Calendar > Relative timestamps

Prev:beginning-of-month ( timestamp -- new-timestamp )
Next:midnight ( timestamp -- new-timestamp )


Vocabulary
calendar

Inputs and outputs
timestampa timestamp
new-timestampa timestamp


Word description
Returns a new timestamp where the day of the week is Sunday.

Definition

: beginning-of-week ( timestamp -- new-timestamp )
midnight sunday ;