package mrmime

  1. Overview
  2. Docs

Module Date.ZoneSource

Sourcetype 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.

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

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

Sourceval of_string : string -> (t, [ `Msg of string ]) result

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

Sourceval 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.

Sourceval v : string -> t

Alias of of_string_exn.

Pretty-printers.

Sourceval pp : Format.formatter -> t -> unit

Equals.

Sourceval equal : t -> t -> bool
OCaml

Innovation. Community. Security.