package mrmime

  1. Overview
  2. Docs

Module Date.DaySource

Sourcetype t =
  1. | Mon
  2. | Tue
  3. | Wed
  4. | Thu
  5. | Fri
  6. | Sat
  7. | Sun
    (*

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

    *)

Constructors.

Sourceval mon : t
Sourceval tue : t
Sourceval wed : t
Sourceval thu : t
Sourceval fri : t
Sourceval sat : t
Sourceval sun : t
Sourceval to_string : t -> string

to_string v returns a well-formed string from a day v.

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

of_string v returns a day from a well-formed string v. Process is case-sensitive. Day needs to be capitalized (eg. "Fri").

Sourceval of_string_exn : string -> t

of_string_exn v returns a day from a well-formed string v. Process is case-sensitive. Day needs to be capitalized (eg. "Fri").

  • raises [Invalid_argument]

    when v is an invalid day.

Sourceval v : string -> t

Alias of of_string_exn.

Pretty-printers.

Sourceval pp : t Fmt.t

Equals.

Sourceval equal : t -> t -> bool
OCaml

Innovation. Community. Security.