Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Date format utilities
Synopsis
- dateFormat :: Text -> UTCTime -> Text
- dateFormatISO8601 :: UTCTime -> Text
- dateParseISO8601 :: Text -> UTCTime
Documentation
dateFormat :: Text -> UTCTime -> Text Source #
Formats a date into a Text string using specified formatting string
Arguments:
format :: Text
: Format stringdate :: UTCTime
: Date to format
Return value: String containing a date in a specified format
dateFormatISO8601 :: UTCTime -> Text Source #
Formats a date into a Text string using ISO8601 formatting string
Format: %Y-%m-%d %H:%M:%S
Output example: 2018-11-25 00:00:01
Arguments:
date :: UTCtime
: Date to format
Return value: String containing a date in ISO8601 format