package mrmime

  1. Overview
  2. Docs
type 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.

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

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

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

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

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

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.