





Synopsis 




Days


newtype Day 
The Modified Julian Day is a standard count of days, with zero being the day 18581117.
 Constructors   Instances  


addDays :: Integer > Day > Day 

diffDays :: Day > Day > Integer 

Gregorian calendar


toGregorian :: Day > (Integer, Int, Int) 
convert to proleptic Gregorian calendar. First element of result is year, second month number (112), third day (131).


fromGregorian :: Integer > Int > Int > Day 
convert from proleptic Gregorian calendar. First argument is year, second month number (112), third day (131).
Invalid values will be clipped to the correct range, month first, then day.


showGregorian :: Day > String 
show in ISO 8601 format (yyyymmdd)


gregorianMonthLength :: Integer > Int > Int 
The number of days in a given month according to the proleptic Gregorian calendar. First argument is year, second is month.


addGregorianMonthsClip :: Integer > Day > Day 
Add months, with days past the last day of the month clipped to the last day.
For instance, 20050130 + 1 month = 20050228.


addGregorianMonthsRollOver :: Integer > Day > Day 
Add months, with days past the last day of the month rolling over to the next month.
For instance, 20050130 + 1 month = 20050302.


addGregorianYearsClip :: Integer > Day > Day 
Add years, matching month and day, with Feb 29th clipped to Feb 28th if necessary.
For instance, 20040229 + 2 years = 20060228.


addGregorianYearsRollOver :: Integer > Day > Day 
Add years, matching month and day, with Feb 29th rolled over to Mar 1st if necessary.
For instance, 20040229 + 2 years = 20060301.


isLeapYear :: Integer > Bool 
Is this year a leap year according to the propleptic Gregorian calendar?


Produced by Haddock version 0.8 