package mrmime

  1. Overview
  2. Docs
type t =
  1. | UT
  2. | GMT
  3. | EST
  4. | EDT
  5. | CST
  6. | CDT
  7. | MST
  8. | MDT
  9. | PST
  10. | PDT
  11. | Military_zone of char
  12. | TZ of int * int
    (*

    Type of zone according RFC 822 / RFC 2822 / RFC 5322.

    *)

Constructors.

val ut : t
val gmt : t
val est : t
val edt : t
val cst : t
val cdt : t
val mst : t
val mdt : t
val pst : t
val pdt : t
val military_zone : char -> (t, [ `Msg of string ]) Stdlib.result
val tz : int -> int -> (t, [ `Msg of string ]) Stdlib.result
val to_string : t -> string

to_string v returns a well-formed string from a time zone v.

val of_string : string -> (t, [ `Msg of string ]) Stdlib.result

of_string v returns a time zone from a well-formed string v. Process is case-sensitive.

val of_string_exn : string -> t

of_string_exn v returns a time zone from a well-formed string v. Process is case-sensitive.

  • raises [Invalid_argument]

    when v is an invalid time zone.

val v : string -> t

Alias of of_string_exn.

Pretty-printers.

val pp : t Fmt.t

Equals.

val equal : t -> t -> bool
OCaml

Innovation. Community. Security.