package timere

  1. Overview
  2. Docs

Module Timere.HmsSource

Sourcetype t = private {
  1. hour : int;
  2. minute : int;
  3. second : int;
}
Sourcetype error = [
  1. | `Invalid_hour of int
  2. | `Invalid_minute of int
  3. | `Invalid_second of int
]
Sourceexception Error_exn of error
Sourceval make : hour:int -> minute:int -> second:int -> (t, error) result
Sourceval make_exn : hour:int -> minute:int -> second:int -> t
Sourceval pp : Format.formatter -> t -> unit
Sourceval to_string : t -> string
Sourceval to_second_of_day : t -> int
Sourceval of_second_of_day : int -> t option