chronos: A performant time library

[ bsd3, data, development, library, parsing, time ] [ Propose Tags ]

Performance-oriented time library for haskell. The main differences between this and "time" are that this library:

  • Uses machine integers where possible. This means that some time-related arithmetic should be faster. It also means that the types are incapable of representing times that are very far in the future or the past.

  • Provides ToJSON and FromJSON instances for json serialization.

  • Provides Unbox instances for working with unboxed vectors.

  • Uses normal non-overloaded haskell functions for encoding and decoding time. It provides "attoparsec" parsers for both Text and ByteString. Additionally, it provides functions for encoding time as Text or ByteString. The "time" library uses accomplishes these with the Data.Time.Format module, which uses UNIX-style datetime format strings. It is expected that the approach taken in this library is faster and catches more mistakes at compile time at the cost of being less expressive.

  • Only provides nanosecond resolution instead of picosecond resolution.


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 0.1.0, 0.2.0, 0.3, 0.4, 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5,,,
Dependencies aeson (>=0.11 && <1.1), attoparsec (>=0.13 && <0.14), base (>=4.8 && <5), bytestring (>=0.10 && <0.11), hashable (>=1.2 && <1.3), primitive (>=0.6 && <0.7), text (>=1.2 && <1.3), vector (>=0.11 && <0.12) [details]
License BSD-3-Clause
Copyright 2016 Andrew Martin
Author Andrew Martin
Revised Revision 1 made by andrewthad at 2016-11-29T18:58:00Z
Category web
Home page
Source repo head: git clone
Uploaded by andrewthad at 2016-11-29T15:10:17Z
Distributions LTSHaskell:, NixOS:, Stackage:
Reverse Dependencies 25 direct, 29 indirect [details]
Downloads 13786 total (94 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]