package timere

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
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
val to_sexp : t -> CCSexp.t
val to_sexp_string : t -> string
val of_sexp : CCSexp.t -> (t, string) Stdlib.result
val of_sexp_string : string -> (t, string) Stdlib.result
val pp_sexp : Stdlib.Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.