pact-time: Time Library for Pact

[ bsd3, data, library, system ] [ Propose Tags ]

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 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.


[Skip to Readme]

Flags

Manual Flags

NameDescriptionDefault
with-time

Use the time package for parsing and formatting

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.2.0.0
Change log CHANGELOG.md
Dependencies aeson (>=0.11), attoparsec (>=0.13), base (>=4.11 && <4.16), bytestring (>=0.10), cereal (>=0.5), clock (>=0.7.2), Decimal (>=0.4), deepseq (>=1.4), microlens (>=0.4), mtl (>=2.2), text (>=1.2), vector (>=0.12), vector-space (>=0.10) [details]
License BSD-3-Clause
Copyright Copyright (c) 2021 Kadena LLC.
Author Lars Kuhtz
Maintainer lakuhtz@gmail.com
Category Data, System
Home page https://github.com/kadena-io/pact-time
Bug tracker https://github.com/kadena-io/pact-time/issues
Source repo head: git clone https://github.com/kadena-io/pact-time.git
Uploaded by larsk at 2021-05-07T19:24:58Z
Distributions NixOS:0.2.0.0
Downloads 701 total (36 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-05-07 [all 1 reports]

Readme for pact-time-0.2.0.0

[back to package description]

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.