day-of-week ( timestamp -- n )
Calendar ยป Calendar facts

Prev:day-of-year ( timestamp -- n )
Next:week-number ( timestamp -- [1,53] )


Vocabulary
calendar

Inputs
timestampa timestamp


Outputs
nan integer


Word description
Calculates the index of the day of the week. Sunday will result in an index of 0.

Examples
USING: calendar prettyprint ; now sunday day-of-week .
0


Definition