package timere

  1. Overview
  2. Docs
type t = private {
  1. days : int;
  2. hours : int;
  3. minutes : int;
  4. seconds : int;
}
val make : ?days:int -> ?hours:int -> ?minutes:int -> ?seconds:int -> unit -> t
  • raises Invalid_argument

    if any of the arguments are negative

val make_frac : ?days:float -> ?hours:float -> ?minutes:float -> ?seconds:int -> unit -> t
  • raises Invalid_argument

    if any of the arguments are negative

val zero : t
val of_seconds : int64 -> t
  • raises Invalid_argument

    if argument is negative

val to_seconds : t -> int64
val to_string : t -> string
val pp : Stdlib.Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.