time-http-0.1.0.1: Parse and format HTTP/1.1 Date and Time strings

Data.Time.RFC1123

Description

This module provides functions to parse and format RFC 1123 date and time formats.

The format is basically same as RFC 822, but the syntax for date is changed from:

 year ::= 2DIGIT

to:

 year ::= 4DIGIT

Synopsis

Documentation

format :: ZonedTime -> StringSource

Format a ZonedTime in RFC 1123.

parse :: String -> Maybe ZonedTimeSource

Parse an RFC 1123 date and time string. When the string can't be parsed, it returns Nothing.