Handbook
Glossary
years ( x -- duration )
Calendar
ยป
Using durations
Next:
months ( x -- duration )
Vocabulary
calendar
Inputs
x
a
number
Outputs
duration
a
duration
Word description
Creates a duration object with the specified number of years.
See also
months
,
days
,
hours
,
minutes
,
seconds
,
milliseconds
,
microseconds
,
nanoseconds
Definition
USING:
accessors
kernel
;
IN:
calendar
:
years
( x -- duration )
instant
swap
>>year
;