Handbook
Glossary
day-of-week ( timestamp -- n )
Calendar
ยป
Calendar facts
Prev:
day-of-year ( timestamp -- n )
Next:
week-number ( timestamp -- [1,53] )
Vocabulary
calendar
Inputs
timestamp
a
timestamp
Outputs
n
an
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
IN:
calendar
:
day-of-week
( timestamp -- n )
>date<
(day-of-week)
;