>date< ( timestamp -- year month day )


Vocabulary
calendar

Inputs
timestampa timestamp


Outputs
yearan integer
monthan integer
dayan integer


Word description
Explodes a timestamp into its year, month, and day components.

Examples
USING: arrays calendar prettyprint ; 2010 8 24 <date> >date< 3array .
{ 2010 8 24 }


See also
>time<

Definition


: >date< ( timestamp -- year month day )
[ year>> ] [ month>> ] [ day>> ] tri ;