package yocaml_syndication

  1. Overview
  2. Docs

Describes (almost) a Timezone according to RFC822.

Types

type t =
  1. | Ut
  2. | Gmt
  3. | Est
  4. | Edt
  5. | Cst
  6. | Cdt
  7. | Mst
  8. | Mdt
  9. | Pst
  10. | Pdt
  11. | Plus of int
  12. | Minus of int

A type describing a timezone.

Helpers

val plus : int -> t

plus 200 generates the TZ "+0200".

val minus : int -> t

minus 200 generates the TZ "-0200".

val to_string : t -> string

to_string tz render a string representation of a timezone.

val to_string_rfc3339 : t -> string

to_string_rfc3339 tz render a string representation of a timezone (computing fixed timezone into offset).

OCaml

Innovation. Community. Security.