Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
Data.Time.Calendar.Quarter.Compat
Contents
Synopsis
- data QuarterOfYear
- addQuarters :: Integer -> Quarter -> Quarter
- diffQuarters :: Quarter -> Quarter -> Integer
- newtype Quarter = MkQuarter Integer
- pattern YearQuarter :: Year -> QuarterOfYear -> Quarter
- monthOfYearQuarter :: MonthOfYear -> QuarterOfYear
- monthQuarter :: Month -> Quarter
- dayQuarter :: Day -> Quarter
- fromYearQuarter :: Year -> QuarterOfYear -> Quarter
- toYearQuarter :: Quarter -> ( Year , QuarterOfYear )
Documentation
data QuarterOfYear Source #
Quarters of each year. Each quarter corresponds to three months.
Instances
An absolute count of year quarters.
Number is equal to
(year * 4) + (quarterOfYear - 1)
.
Instances
pattern YearQuarter :: Year -> QuarterOfYear -> Quarter Source #
Bidirectional abstract constructor.
monthQuarter :: Month -> Quarter Source #
dayQuarter :: Day -> Quarter Source #
time-compat extras
fromYearQuarter :: Year -> QuarterOfYear -> Quarter Source #
Part of
YearQuarter
pattern
toYearQuarter :: Quarter -> ( Year , QuarterOfYear ) Source #
Part of
YearQuarter
pattern