HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduletime-1.16.0.1GHC2021

Data.Time.Calendar.Month

An absolute count of common calendar months.

  • 1 type
  • 4 values
  • Packagetime-1.16.0.1
  • Exports7
  • LanguageGHC2021
  • LicenceBSD-2-Clause
  • SourceMonth.hs
newtypenewtype Month
#

An absolute count of common calendar months. Number is equal to (year * 12) + (monthOfYear - 1).

Constructors

Instances14Enum, Eq, Data, Ord, Read, Show, …
patternpattern YearMonth :: Year -> MonthOfYear -> Month
#

Bidirectional abstract constructor. Invalid months of year will be clipped to the correct range.

patternpattern MonthDay :: Month -> DayOfMonth -> Day
#

Bidirectional abstract constructor. Invalid days of month will be clipped to the correct range.