Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.Thyme.Format.Aeson
Description
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.
Constructors
DotNetTime | |
Fields |