package odate

  1. Overview
  2. Docs

Duration

type printer

printer

type human_readable = {
  1. forward : bool;
    (*

    true means in the future

    *)
  2. ms : int;
  3. s : int;
  4. m : int;
  5. h : int;
  6. day : int;
  7. month : int;
  8. year : int;
}
module type S = sig ... end
include S
type t
val zero : t
val zero_human : human_readable
val (+) : t -> t -> t
val (-) : t -> t -> t
val max : t -> t -> t
val min : t -> t -> t
val is_negative : t -> bool
val is_positive : t -> bool
val is_instantenous : t -> bool
val abs : t -> t
val make : ?forward:bool -> ?ms:int -> ?s:int -> ?m:int -> ?h:int -> ?day:int -> ?week:int -> ?month:int -> ?year:int -> unit -> t
module From : sig ... end
module To : sig ... end