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