Safe Haskell | None |
---|---|
Language | Haskell2010 |
ISO 8601 Ordinal Date format
- type Year = Int
- isLeapYear :: Year -> Bool
- type DayOfYear = Int
- data OrdinalDate = OrdinalDate {}
- ordinalDate :: Iso' Day OrdinalDate
- ordinalDateValid :: OrdinalDate -> Maybe Day
- _odYear :: Lens' OrdinalDate Year
- _odDay :: Lens' OrdinalDate DayOfYear
Documentation
isLeapYear :: Year -> Bool Source
Gregorian leap year?
data OrdinalDate Source