| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Thyme.Calendar
Description
- 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.
Constructors
| ModifiedJulianDay | |
Fields | |
Instances
| Enum Day Source # | |
| Eq Day Source # | |
| Data Day Source # | |
| Ord Day Source # | |
| Show Day Source # | |
| Ix Day Source # | |
| Generic Day Source # | |
| CoArbitrary Day Source # | |
| NFData Day Source # | |
| Unbox Day Source # | |
| AffineSpace Day Source # | |
| ParseTime Day Source # | |
| FormatTime Day Source # | |
| Vector Vector Day Source # | |
| MVector MVector Day Source # | |
| Thyme Day Day Source # | |
| type Rep Day Source # | |
| data Vector Day Source # | |
| type Diff Day Source # | |
| data MVector s Day Source # | |
modifiedJulianDay :: Iso' Day Int Source #
Gregorian calendar
type DayOfMonth = Int Source #
data YearMonthDay Source #
Constructors
| YearMonthDay | |
Instances
isLeapYear :: Year -> Bool Source #
Gregorian leap year?
yearMonthDay :: Iso' OrdinalDate YearMonthDay Source #
gregorian :: Iso' Day YearMonthDay Source #
gregorianValid :: YearMonthDay -> Maybe Day Source #
showGregorian :: Day -> String Source #
gregorianMonthsClip :: Months -> YearMonthDay -> YearMonthDay Source #
gregorianYearsClip :: Years -> YearMonthDay -> YearMonthDay Source #
Lenses
_ymdYear :: Lens' YearMonthDay Year Source #
_ymdMonth :: Lens' YearMonthDay Month Source #
_ymdDay :: Lens' YearMonthDay DayOfMonth Source #