package spotlib

  1. Overview
  2. Docs
type t = {
  1. date : Date.t;
  2. time : Time.t;
  3. zone : TZone.t;
}
val to_string : t -> string
exception Parse_error
val of_string_exn : string -> t
val of_string : string -> (t, [> `Exn of exn ]) result
val is_valid : t -> bool
val random : unit -> t
val epoch : t -> float

Seconds from 1970-01-01T00:00:00Z. No leap seconds included.

Note that the epoch of EOD and the epoch of D+1T00:00:00 are the same, but they are different ts.

val of_utc_tm : Unix.tm -> t
OCaml

Innovation. Community. Security.