package timere

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = private {
  1. hour : int;
  2. minute : int;
  3. second : int;
}
type error = [
  1. | `Invalid_hour of int
  2. | `Invalid_minute of int
  3. | `Invalid_second of int
]
exception Error_exn of error
val make : hour:int -> minute:int -> second:int -> (t, error) result
val make_exn : hour:int -> minute:int -> second:int -> t
val pp : Format.formatter -> t -> unit
val to_string : t -> string
val to_second_of_day : t -> int
val of_second_of_day : int -> t option
OCaml

Innovation. Community. Security.