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

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


Vocabulary
calendar

Inputs and outputs
durationa duration
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