Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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 #
Instances
Eq DateFormat Source # | |
Defined in DateParser (==) :: DateFormat -> DateFormat -> Bool # (/=) :: DateFormat -> DateFormat -> Bool # | |
Show DateFormat Source # | |
Defined in DateParser showsPrec :: Int -> DateFormat -> ShowS # show :: DateFormat -> String # showList :: [DateFormat] -> ShowS # |
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.