Module Betacalendars.Weekday

type t =
  1. | Monday
  2. | Tuesday
  3. | Wednesday
  4. | Thursday
  5. | Friday
  6. | Saturday
  7. | Sunday

Weekday ordering and conversions.

val all : t list

Weekdays in Monday-first order.

val to_index : t -> int

Return the Monday-first index from 0 through 6.

val of_index : int -> t

Convert any integer to its weekday, wrapping modulo seven.

val to_string : t -> string

Return the English name of a weekday.