Module Core_kernel.Unit_of_time

Represents a unit of time, e.g. used by Time.Span.to_string_hum. Comparison respects Nanosecond < Microsecond < Millisecond < Second < Minute < Hour < Day.

type t =
| Nanosecond
| Microsecond
| Millisecond
| Second
| Minute
| Hour
| Day
include sig ... end
val compare : t ‑> t ‑> Core_kernel__.Import.int
val t_of_sexp : Sexplib.Sexp.t ‑> t
val sexp_of_t : t ‑> Sexplib.Sexp.t