- 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 ( RFC1123.fromAscii "Sun, 06 Nov 1994 08:49:37 GMT"
+ ≡ Right referenceZonedTime )
+
+ , property ( "Sun, 06 Nov 1994 08:49:37 GMT"
+ ≡ RFC1123.toAscii referenceZonedTime )
+
+ , property $ \zt → Right zt ≡ RFC1123.fromAscii (RFC1123.toAscii zt)
+
+ -- HTTP
+ , property $ \ut → Right ut ≡ HTTP.fromAscii (HTTP.toAscii ut )
+ , property $ \ut → Right ut ≡ HTTP.fromAscii (untag (cs (ut2lt ut) ∷ Tagged Asctime Ascii))
+ , property $ \ut → Right ut ≡ HTTP.fromAscii (untag (cs (ut2zt ut) ∷ Tagged RFC733 Ascii))
+ , property $ \ut → Right ut ≡ HTTP.fromAscii (RFC1123.toAscii (ut2zt ut))