Module Core_kernel.Unit_of_time

Represents a unit of time, e.g., that 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 Ppx_sexp_conv_lib.Sexpable.S with type t := t
type t
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
val compare : t -> t -> Core_kernel__.Import.int
val all : t Core_kernel__.Import.list
val hash_fold_t : Base.Hash.state -> t -> Base.Hash.state
val hash : t -> Base.Hash.hash_value