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

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


Vocabulary
calendar

Inputs
timestampa timestamp


Outputs
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