Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type Years = Int
- type Months = Int
- type Days = Int
- newtype Day = ModifiedJulianDay {}
- modifiedJulianDay :: Iso' Day Int
- type Year = Int
- type Month = Int
- type DayOfMonth = Int
- data YearMonthDay = YearMonthDay {}
- isLeapYear :: Year -> Bool
- yearMonthDay :: Iso' OrdinalDate YearMonthDay
- gregorian :: Iso' Day YearMonthDay
- gregorianValid :: YearMonthDay -> Maybe Day
- showGregorian :: Day -> String
- gregorianMonthLength :: Year -> Month -> Days
- gregorianMonthsClip :: Months -> YearMonthDay -> YearMonthDay
- gregorianMonthsRollover :: Months -> YearMonthDay -> YearMonthDay
- gregorianYearsClip :: Years -> YearMonthDay -> YearMonthDay
- gregorianYearsRollover :: Years -> YearMonthDay -> YearMonthDay
- _ymdYear :: Lens' YearMonthDay Year
- _ymdMonth :: Lens' YearMonthDay Month
- _ymdDay :: Lens' YearMonthDay DayOfMonth
Documentation
Days
The Modified Julian Day is a standard count of days, with zero being the day 1858-11-17.
Bounded Day | |
Enum Day | |
Eq Day | |
Data Day | |
Ord Day | |
Read Day | |
Show Day | |
Ix Day | |
Generic Day | |
Arbitrary Day | |
CoArbitrary Day | |
NFData Day | |
Unbox Day | |
Random Day | |
AffineSpace Day | |
ParseTime Day | |
FormatTime Day | |
Typeable * Day | |
Vector Vector Day | |
MVector MVector Day | |
Thyme Day Day | |
type Rep Day | |
data Vector Day = V_Day (Vector Int) | |
type Diff Day = Days | |
data MVector s0 Day = MV_Day (MVector s Int) |
Gregorian calendar
type DayOfMonth = Int Source
data YearMonthDay Source
isLeapYear :: Year -> Bool Source
Gregorian leap year?
gregorianValid :: YearMonthDay -> Maybe Day Source
showGregorian :: Day -> String Source
gregorianMonthLength :: Year -> Month -> Days Source