- property ( Asctime.fromAscii "Sun Nov 6 08:49:37 1994"
- ≡ Right (LocalTime (ModifiedJulianDay 49662) (TimeOfDay 8 49 37)) )
- , property ( Asctime.toAscii (LocalTime (ModifiedJulianDay 49662) (TimeOfDay 8 49 37))
- ≡ "Sun Nov 6 08:49:37 1994" )
- , property $ \lt → Right lt ≡ Asctime.fromAscii (Asctime.toAscii lt)
+ property ( fromAttempt (ca (Tagged "Sun Nov 6 08:49:37 1994" ∷ Tagged Asctime Ascii))
+ ≡ Just referenceLocalTime
+ )
+
+ , property ( (Tagged "Sun Nov 6 08:49:37 1994" ∷ Tagged Asctime Ascii)
+ ≡ cs referenceLocalTime
+ )
+
+ , property $ \lt → Just lt ≡ fromAttempt (ca (cs (lt ∷ LocalTime)
+ ∷ Tagged Asctime Ascii))
+
+ -- RFC733
+ , property ( fromAttempt (ca (Tagged "Sunday, 06-Nov-94 08:49:37 GMT" ∷ Tagged RFC733 Ascii))
+ ≡ Just referenceZonedTime
+ )
+
+ , property ( (Tagged "Sunday, 06-Nov-1994 08:49:37 GMT" ∷ Tagged RFC733 Ascii)
+ ≡ cs referenceZonedTime
+ )
+
+ , property $ \zt → Just zt ≡ fromAttempt (ca (cs (zt ∷ ZonedTime)
+ ∷ Tagged RFC733 Ascii))
+
+ -- RFC1123
+ , property ( fromAttempt (ca (Tagged "Sun, 06 Nov 1994 08:49:37 GMT" ∷ Tagged RFC1123 Ascii))
+ ≡ Just referenceZonedTime
+ )
+
+ , property ( (Tagged "Sun, 06 Nov 1994 08:49:37 GMT" ∷ Tagged RFC1123 Ascii)
+ ≡ cs referenceZonedTime
+ )
+
+ , property $ \zt → Just zt ≡ fromAttempt (ca (cs (zt ∷ ZonedTime)
+ ∷ Tagged RFC1123 Ascii))
+
+ -- HTTP
+ , property $ \ut → Just ut ≡ fromAttempt (ca (cs ut ∷ Tagged HTTP Ascii) ∷ Attempt UTCTime)
+ , property $ \ut → Just ut ≡ fromAttempt (ca (retagHTTP (cs (ut2lt ut) ∷ Tagged Asctime Ascii)))
+ , property $ \ut → Just ut ≡ fromAttempt (ca (retagHTTP (cs (ut2zt ut) ∷ Tagged RFC733 Ascii)))
+ , property $ \ut → Just ut ≡ fromAttempt (ca (retagHTTP (cs (ut2zt ut) ∷ Tagged RFC1123 Ascii)))