package plato

  1. Overview
  2. Docs
type t
val make : ?days:int -> ?seconds:int -> ?microseconds:int -> ?milliseconds:int -> ?minutes:int -> ?hours:int -> ?weeks:int -> unit -> t
val min : t
val max : t
val resolution : t
val total_seconds : t -> float
val days : t -> int
val seconds : t -> int
val microseconds : t -> int
val to_microseconds : t -> int
val add : t -> t -> t
val sub : t -> t -> t
val neg : t -> t
val abs : t -> t
val mul : t -> int -> t
val floordiv_t : t -> t -> int
val floordiv_int : t -> int -> t
val truediv_t : t -> t -> float
val truediv_int : t -> int -> t
val modulo : t -> t -> t
val divmod : t -> t -> int * t
val compare : t -> t -> int
val eq : t -> t -> bool
val le : t -> t -> bool
val lt : t -> t -> bool
val ge : t -> t -> bool
val gt : t -> t -> bool
val hash : t -> int
val bool : t -> bool
val repr : t -> string
val to_string : t -> string
OCaml

Innovation. Community. Security.