Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Support for reading and displaying time in the format specified by the RFC822 http://www.ietf.org/rfc/rfc0822.txt section 5.
Example of usage:
import Data.Time.LocalTime showTime :: IO Text showTime = formatTimeRFC822 <$> getZonedTime example1 = "Wed, 02 Oct 2002 13:00:00 GMT" example2 = "Wed, 02 Oct 2002 13:00:00 +0100" example3 = "Wed, 02 Oct 2002 13:00 +0100" example4 = "02 Oct 2002 13:00 +0100" example5 = "02 Oct 02 13:00 +0100" examples = [example1, example2, example3, example4, example5] readAll = map parseTimeRFC822 examples
Synopsis
- formatTimeRFC822 :: TextualMonoid t => ZonedTime -> t
- parseTimeRFC822 :: TextualMonoid t => t -> Maybe ZonedTime
Basic type class
formatTimeRFC822 :: TextualMonoid t => ZonedTime -> t Source #
parseTimeRFC822 :: TextualMonoid t => t -> Maybe ZonedTime Source #