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