Time.Month

lib/Time/Month.gob

A month of the ISO calendar. A sum rather than an Int, so that a month out of range is a type error where it is written rather than a check at run time.

type Month : Ord = Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec
fun number : fun(Month) -> Int

1 for January through 12 for December.

fun fromNumber : fun(Int) -> Option Month
instance Show Month