import Data.Time
import Data.Time.Calendar.WeekDate
import Data.Time.HTTP.Common
+import Data.Time.RFC822.Internal hiding (toAsciiBuilder)
-- |Parse RFC 733 date and time strings.
rfc733DateAndTime ∷ Parser ZonedTime
⊕ show2 (todMin timeOfDay)
⊕ A.toAsciiBuilder ":"
⊕ show2 (floor (todSec timeOfDay) ∷ Int)
- ⊕ A.toAsciiBuilder "-"
- ⊕ show4digitsTZ timeZone
+ ⊕ A.toAsciiBuilder " "
+ ⊕ showRFC822TimeZone timeZone
import Control.Applicative.Unicode
import Data.Time
import qualified Data.Time.Asctime as Asctime
+import qualified Data.Time.RFC733 as RFC733
import qualified Data.Time.RFC1123 as RFC1123
import System.Exit
import Prelude.Unicode
, property $ \lt → Right lt ≡ Asctime.fromAscii (Asctime.toAscii lt)
+ -- RFC733
+ , property ( RFC733.fromAscii "Sunday, 06-Nov-94 08:49:37 GMT"
+ ≡ Right referenceZonedTime )
+
+ , property ( "Sunday, 06-Nov-1994 08:49:37 GMT"
+ ≡ RFC733.toAscii referenceZonedTime )
+
+ , property $ \zt → Right zt ≡ RFC733.fromAscii (RFC733.toAscii zt)
+
-- RFC1123
, property ( RFC1123.fromAscii "Sun, 06 Nov 1994 08:49:37 GMT"
≡ Right referenceZonedTime )