Module Time.Span
Spans.
Constructors
Converting
to_us d is d in whole microseconds, rounded toward negative infinity: to_us (ns (-1)) is -1L.
Predicates and formatting
compare d0 d1 orders spans from the most negative to the most positive. It is compatible with equal.
pp ppf d formats d as a minus sign when it is negative, then each nonzero component in hours, minutes, seconds, milliseconds, microseconds and nanoseconds, largest first, suffixed h, m, s, ms, us and ns: 168h, 1h30m, 1s500ms, -250us. The zero span formats as 0s. A span never formats in days, which in printed steps are calendar days (pp_step).