Temporal.Durationval of_fields : months:int -> days:int -> seconds:int64 -> nanoseconds:int -> tA duration from its components.
val to_fields : t -> int * int * int64 * intThe (months, days, seconds, nanoseconds) of a duration.
val to_total_seconds : t -> int64Total seconds, approximating months as 30 days.
val to_iso8601 : t -> stringFormat as an ISO 8601 duration ("PnYnMnDTnHnMnS").
val of_iso8601 : string -> t optionParse an ISO 8601 duration; None if invalid.
val to_span : t -> Ptime.Span.t optionConvert to a Ptime.Span.t; None if the duration has months (spans cannot represent them).
val of_span : Ptime.Span.t -> tA duration from a Ptime.Span.t (months = 0).
val to_string : t -> stringAlias for to_iso8601.