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

Prev:days-in-month ( timestamp -- n )
Next:day-of-week ( timestamp -- n )


Vocabulary
calendar

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