Handbook
Glossary
day-of-year ( timestamp -- n )
Calendar
ยป
Calendar facts
Prev:
days-in-month ( timestamp -- n )
Next:
day-of-week ( timestamp -- n )
Vocabulary
calendar
Inputs
timestamp
a
timestamp
Outputs
n
an
integer
Word description
Calculates the day of the year, resulting in a number from 1 to 366 (leap years).
Examples
USING: calendar prettyprint ; 2008 1 4 <date> day-of-year .
4
Definition
IN:
calendar
:
day-of-year
( timestamp -- n )
>date<
(day-of-year)
;