Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data DDateTime
- data DDate
- type Yold = Int
- data Season
- data Day
- weekdays :: [String]
- seasons :: [String]
- fluxes :: [String]
- holydays :: [String]
- yold :: Int -> Yold
- convertSeason :: Int -> Season
- convertDay :: Int -> Day
- holyday :: DDatable -> String
- convertDateTime :: DateTime -> DDateTime
- convertDate :: DateTime -> DDate
- ddateToDDateTime :: DDate -> DDateTime
- ddateTimeToDDate :: DDateTime -> DDate
Documentation
The DDateTime data type. It consists of a Yold, a Season, a Day |and three integers that signify the time of day.
The DDateTime data type. It consists of a Yold, a Season and a Day.
The Season data type. It's just a wrapped Int.
The Day type. It's just a wrapped Int.
convertSeason :: Int -> Season Source #
Converts an Int to a Season (takes the day of the year).
convertDay :: Int -> Day Source #
Converts an Int to a Day (takes the day of the year).
holyday :: DDatable -> String Source #
Takes a DDate or DDateTime instance and returns | the appropriate Holyday (or an empty string).
convertDateTime :: DateTime -> DDateTime Source #
Upgrades a DateTime to a DDateTime.
convertDate :: DateTime -> DDate Source #
Upgrades a DateTime to a DDate.
ddateToDDateTime :: DDate -> DDateTime Source #
Converts a DDate instance to a DDateTime instance | with the time set to midnight.
ddateTimeToDDate :: DDateTime -> DDate Source #
Converts a DDateTime instance to a DDate instance.