Length of time
is Cool does Real
A Duration
represents a length of time in atomic seconds, with fractions. Like an Instant, it is epoch-agnostic.
Duration
s can be subtracted from or added to Instant
s to yield another, new Instant
. Subtracting one Instant
from another yields a Duration
. A Duration
can also result from mathematical operations between two Duration
s when it makes sense (namely, the addition, subtraction, or modulus of two Duration
s). It can also be added, subtracted or divided modulo Real numbers.
The type of object returned for other numeric operations is currently unspecified.