, UnicodeSyntax
#-}
-- |This module provides functions to parse and format RFC 1123 date
--- and time formats.
+-- and time strings (<http://tools.ietf.org/html/rfc1123#page-55>).
--
-- The format is basically same as RFC 822, but the syntax for @date@
-- is changed from:
-- to:
--
-- > year ::= 4DIGIT
-module Data.Time.RFC1123
+module Data.Time.Format.RFC1123
( RFC1123
, rfc1123DateAndTime
)
import Data.Tagged
import Data.Time
import Data.Time.Calendar.WeekDate
-import Data.Time.HTTP.Common
-import Data.Time.RFC822.Internal
+import Data.Time.Format.HTTP.Common
+import Data.Time.Format.RFC822.Internal
import Prelude.Unicode
--- FIXME: doc
+-- |The phantom type for conversions between RFC 1123 date and time
+-- strings and 'ZonedTime'.
+--
+-- >>> convertSuccess (ZonedTime (LocalTime (ModifiedJulianDay 49662) (TimeOfDay 8 49 37)) utc)
+-- Tagged "Sun, 06 Nov 1994 08:49:37 GMT"
data RFC1123
instance ConvertSuccess ZonedTime (Tagged RFC1123 Ascii) where