Handbook
Glossary
duration>months ( duration -- x )
Calendar
ยป
Using durations
Prev:
duration>years ( duration -- x )
Next:
duration>days ( duration -- x )
Vocabulary
calendar
Inputs
duration
a
duration
Outputs
x
a
number
Word description
Calculates the length of a duration in months.
Examples
USING: calendar prettyprint ; 30 days duration>months .
16000/16233
See also
duration>years
,
duration>days
,
duration>hours
,
duration>minutes
,
duration>seconds
,
duration>milliseconds
,
duration>microseconds
,
duration>nanoseconds
Definition
USING:
math
;
IN:
calendar
:
duration>months
( duration -- x )
duration>years
months-per-year
*
;