day-of-week ( timestamp -- n )
Calendar > Calendar facts

Prev:day-of-year ( timestamp -- n )
Next:julian-day-number ( year month day -- n )


Vocabulary
calendar

Inputs and outputs
timestampa timestamp
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