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

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 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