std/time/duration▲toc

Time durations in SI seconds.

Durations use SI seconds.

A duration in time in (TAI) SI seconds (as measured on the earth's geoid).
A duration is represented by a ddoublestd/num/ddouble/ddouble: V giving it a high range and precision (see the instant module).

Create a durationstd/time/duration/duration: V of n “days” (assuming 86400s in a day).

Convert a timespanstd/time/timestamp/timespan: V to a durationstd/time/duration/duration: V. Be careful to only use use this on timespan's that are in TAI SI seconds!

Create a duration from whole seconds secsstd/time/duration/secs: (duration : duration) -> timespan and a fraction of seconds frac.

The fractional seconds of a duration as a doublestd/core/double: V. d.seconds == d.truncate.fixed + d.fraction.fixed.

Return the duration in rounded SI milli-seconds.

Return the duration in rounded SI nano-seconds.

Is this a negative duration?

Is this a positive duration?

Show a duration in SI seconds.

The whole seconds (in some time unit) of the duration as intstd/core/int: V. Rounds towards zero..

Convert a timestampstd/time/timestamp/timestamp: V to a durationstd/time/duration/duration: V. Be careful to only use use this on timestamp's that are in TAI SI seconds and do not contain leap seconds!

Create a durationstd/time/duration/duration: V of n “weeks” (assuming 7 days of 86400s).

Create a durationstd/time/duration/duration: V of n “years” (assuming 365 days of 86400s).

Is this a zero duration?