Library
Module
Module type
Parameter
Class
Class type
A duration.
A duration.
val days : int -> t
days n
is a duration of n
days.
val hours : int -> t
minutes n
is a duration of n
hours.
val minutes : int -> t
minutes n
is a duration of n
minutes.
val seconds : int -> t
seconds n
is a duration of n
seconds.
val to_days : t -> int
to_days span
is the number of days in span
floored.
val to_seconds : t -> int
to_days span
is the number of seconds in span
floored.
include Base.Comparable.S with type t := t
val comparator : (t, comparator_witness) Base__Comparator.comparator
module O : sig ... end
Convenience module to only pull operators.
val of_ptime : Ptime.Span.t -> t
of_ptime ptime_span
is the span equivalent to ptime_span
.
val to_ptime : t -> Ptime.Span.t
to_ptime span
is the Ptime span equivalent to span
.