Module Time.Month

Functions to convert between month names and month numbers.

type t =
  1. | JANUARY
  2. | FEBRUARY
  3. | MARCH
  4. | APRIL
  5. | MAY
  6. | JUNE
  7. | JULY
  8. | AUGUST
  9. | SEPTEMBER
  10. | OCTOBER
  11. | NOVEMBER
  12. | DECEMBER

The type of months.

val list : t list

The months of the year, in ascending order.

val of_int : int -> t

(of_int n) returns the month corresponding the number n; 1-based.

Example: of_int 1 = JANUARY

English Months

module English : sig ... end

English language month names.

Default Month Names

Default month names are in English.

val to_string : t -> string

to_string is English.to_string.

longs is English.longs.

val longs : string list

longs is English.longs.

shorts is English.shorts.

val shorts : string list

shorts is English.shorts.