module Span: sig
.. end
A timespan.
module Parts: sig
.. end
type
t
include Sexpable
include Binable
include Comparable
include Robustly_comparable
include Floatable
val to_string : t -> string
val of_string : string -> t
val to_string_hum : t -> string
val min_value : t
val max_value : t
val second : t
val minute : t
val hour : t
val day : t
val epsilon : t
val zero : t
val create : ?day:int -> ?hr:int -> ?min:int -> ?sec:int -> ?ms:int -> unit -> t
val to_parts : t -> Parts.t
val of_ms : float -> t
val of_sec : float -> t
val of_int_sec : int -> t
val of_min : float -> t
val of_hr : float -> t
val of_day : float -> t
val to_ms : t -> float
val to_sec : t -> float
val to_min : t -> float
val to_hr : t -> float
val to_day : t -> float
val add : t -> t -> t
Basic operations on spans
val sub : t -> t -> t
val abs : t -> t
val scale : float -> t -> t
computes absolute value of span
val (/) : t -> t -> float
val randomize : t -> percent:float -> t
randomize t ~percent
returns a random span between t - percent * t
and t + percent * t
val pp : Format.formatter -> t -> unit