duration>years ( duration -- x )
Calendar ยป Using durations

Prev:instant ( -- duration )
Next:duration>months ( duration -- x )


Vocabulary
calendar

Inputs
durationa duration


Outputs
xa number


Word description
Calculates the length of a duration in years.

Examples
USING: calendar prettyprint ; 6 months duration>years .
1/2


See also
duration>months, duration>days, duration>hours, duration>minutes, duration>seconds, duration>milliseconds, duration>microseconds, duration>nanoseconds

Definition