Portability | LiberalTypeSynonyms |
---|---|
Stability | provisional |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Safe Haskell | None |
- modifiedJulianDay :: Simple Iso Day Integer
- class TraverseDay t where
- traverseDay :: Simple Traversal t Day
- class HasYear t where
- class HasMonth t where
- class HasWeek t where
- class HasDay t where
- data Gregorian = Gregorian {
- gregorianYear :: !Integer
- gregorianMonth :: !Int
- gregorianDay :: !Int
- gregorian :: Simple Iso Day Gregorian
- data JulianYearAndDay = JulianYearAndDay {}
- julianYearAndDay :: Simple Iso Day JulianYearAndDay
- data WeekDate = WeekDate {
- weekDateYear :: !Integer
- weekDateWeek :: !Int
- weekDateDay :: !Int
- weekDate :: Simple Iso Day WeekDate
- data OrdinalDate = OrdinalDate {
- ordinalDateYear :: !Integer
- ordinalDateDay :: !Int
- ordinalDate :: Simple Iso Day OrdinalDate
Documentation
modifiedJulianDay :: Simple Iso Day IntegerSource
Returns the modified Julian Day as a standard count of days, with zero being the day 1858-11-17.
class TraverseDay t whereSource
Provide ad hoc overloading for traversing the modified Julian day
traverseDay :: Simple Traversal t DaySource
Convert the type to a modified Julian day if possible and traverse it.
Traverses nothing if the date isn't valid.
Ad hoc overloading for accessing the year
Ad hoc overloading for accessing the month
Ad hoc overloading for accessing the week (what it is relative to may vary from type to type)
Ad hoc overloading for accessing the day (what it is relative to may vary from type to type)
HasDay OrdinalDate | |
HasDay WeekDate | Day of week |
HasDay JulianYearAndDay | Day of year |
HasDay Gregorian | Day of month |
Date in the proleptic Gregorian calendar.
Gregorian | |
|
gregorian :: Simple Iso Day GregorianSource
Convert tofrom a valid/ date in the proleptic Gregorian calendar
data JulianYearAndDay Source
Proleptic Julian year and day format.
JulianYearAndDay | |
|
julianYearAndDay :: Simple Iso Day JulianYearAndDaySource
Convert tofrom a valid/ proleptic Julian year and day.
ISO 8601 Week Date format.
The first week of a year is the first week to contain at least four days in the corresponding Gregorian year.
WeekDate | |
|
data OrdinalDate Source
ISO 8601 Ordinal Date format
OrdinalDate | |
|
ordinalDate :: Simple Iso Day OrdinalDateSource
Convert to/from a valid ISO 8601 Ordinal Date format.