| Safe Haskell | Safe | 
|---|---|
| Language | Haskell2010 | 
Data.Time.Calendar.Month
Description
An absolute count of common calendar months.
Synopsis
- newtype Month = MkMonth Integer
 - addMonths :: Integer -> Month -> Month
 - diffMonths :: Month -> Month -> Integer
 - pattern YearMonth :: Year -> MonthOfYear -> Month
 - fromYearMonthValid :: Year -> MonthOfYear -> Maybe Month
 - pattern MonthDay :: Month -> DayOfMonth -> Day
 - fromMonthDayValid :: Month -> DayOfMonth -> Maybe Day
 
Documentation
An absolute count of common calendar months.
 Number is equal to (year * 12) + (monthOfYear - 1).
Instances
pattern YearMonth :: Year -> MonthOfYear -> Month Source #
Bidirectional abstract constructor. Invalid months of year will be clipped to the correct range.
fromYearMonthValid :: Year -> MonthOfYear -> Maybe Month Source #
pattern MonthDay :: Month -> DayOfMonth -> Day Source #
Bidirectional abstract constructor. Invalid days of month will be clipped to the correct range.
fromMonthDayValid :: Month -> DayOfMonth -> Maybe Day Source #