HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulethyme-0.4.1Haskell2010

Data.Thyme.Format.Aeson

Instances of FromJSON and ToJSON for UTCTime and ZonedTime, along with a newtype wrapper DotNetTime.

  • 1 type
  • Packagethyme-0.4.1
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceAeson.hs
newtypenewtype DotNetTime
#

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.

Instances7Eq, Ord, Read, Show, FromJSON, ToJSON, …

Orphan instances

4 instances