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