Handbook
Glossary
>date< ( timestamp -- year month day )
Vocabulary
calendar
Inputs
timestamp
a
timestamp
Outputs
year
an
integer
month
an
integer
day
an
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
USING:
accessors
kernel
;
IN:
calendar
:
>date<
( timestamp -- year month day )
[
year>>
]
[
month>>
]
[
day>>
]
tri
;