years ( x -- duration )
Calendar > Using durations
Next:months ( x -- duration )


Vocabulary
calendar

Inputs and outputs
xa number
durationa 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 ;