Safe Haskell | None |
---|
Instances of FromJSON
and ToJSON
for UTCTime
and ZonedTime
,
along with a newtype wrapper DotNetTime
.
- newtype DotNetTime = DotNetTime {}
Documentation
newtype DotNetTime Source
A newtype wrapper for UTCTime
that uses the same non-standard
serialization format as Microsoft .NET, whose System.DateTime
type is by default serialized to JSON as in the following example:
/Date(1302547608878)/
The number represents milliseconds since the Unix epoch.