On this page
Data.Time.Calendar.Quarter
Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Description
Year quarters.
data QuarterOfYear Source
Quarters of each year. Each quarter corresponds to three months.
Instances
addQuarters :: Integer -> Quarter -> Quarter Source
diffQuarters :: Quarter -> Quarter -> Integer Source
An absolute count of year quarters. Number is equal to (year * 4) + (quarterOfYear - 1)
.
Instances
pattern YearQuarter :: Year -> QuarterOfYear -> Quarter Source
Bidirectional abstract constructor.
monthOfYearQuarter :: MonthOfYear -> QuarterOfYear Source
The QuarterOfYear
this MonthOfYear
is in.
monthQuarter :: Month -> Quarter Source
dayQuarter :: Day -> Quarter Source
type DayOfQuarter = Int Source
Day of quarter, in range 1 to 92.
pattern QuarterDay :: Quarter -> DayOfQuarter -> Day Source
Bidirectional abstract constructor. Invalid days of quarter will be clipped to the correct range.
Since: time-1.12.1
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.4.2/docs/libraries/time-1.12.2/Data-Time-Calendar-Quarter.html