package calendar

  1. Overview
  2. Docs
type t
type field = [
  1. | `Hour
  2. | `Minute
  3. | `Second
]
val make : int -> int -> int -> t
val lmake : ?hour:int -> ?minute:int -> ?second:int -> unit -> t
val now : unit -> t
val midnight : unit -> t
val midday : unit -> t
val convert : t -> Time_Zone.t -> Time_Zone.t -> t
val from_gmt : t -> t
val to_gmt : t -> t
val normalize : t -> t * int
val hour : t -> int
val minute : t -> int
val second : t -> int
val to_seconds : t -> int
val to_minutes : t -> float
val to_hours : t -> float
val compare : t -> t -> int
val equal : t -> t -> bool
val is_pm : t -> bool
val is_am : t -> bool
val from_seconds : int -> t
val from_minutes : float -> t
val from_hours : float -> t
module Period : sig ... end
val add : t -> Period.t -> t
val sub : t -> t -> Period.t
val rem : t -> Period.t -> t
val next : t -> field -> t
val prev : t -> field -> t
OCaml

Innovation. Community. Security.