Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data DateFormat
- parseDateFormat :: Text -> Either Text DateFormat
- german :: DateFormat
- parseDate :: Day -> DateFormat -> Text -> Either Text Day
- parseDateWithToday :: DateFormat -> Text -> IO (Either Text Day)
- parseHLDate :: Day -> Text -> Either Text Day
- parseHLDateWithToday :: Text -> IO (Either Text Day)
- printDate :: DateFormat -> Day -> Text
- weekDay :: Int -> Day -> Day
Documentation
data DateFormat Source #
parseDateFormat :: Text -> Either Text DateFormat Source #
german :: DateFormat Source #
Corresponds to %d[.[%m[.[%y]]]]
parseDateWithToday :: DateFormat -> Text -> IO (Either Text Day) Source #
Parse text with given format and fill in missing fields with todays date.