@hackage pact-time0.3.0.1
Time Library for Pact
Categories
License
BSD-3-Clause
Maintainer
lakuhtz@gmail.com
Links
Versions
Installation
Dependencies (16)
- Decimal >=0.4
- aeson >=0.11
- attoparsec >=0.13
- base >=4.11 && <5
- bytestring >=0.10
- cereal >=0.5 Show all…
Dependents (0)
Package Flags
with-time
(off by default)
Use the time package for parsing and formatting
Pact-Time Library
A minimal time library for usage with the Pact Smart Contract Language.
The focus of this library is on minimality, performance, and binary level stability. Time is represented as a 64-bit integral value that counts nominal micro-seconds since the modified Julian date epoch (MJD). The implementation ignores leap seconds.
While the library can parse date-time values with time zones, internally all date-times are represented as UTC and formatting only supports UTC. Only the default English language locale is supported.
Details about supported formats can be found in the Pact Language Reference.