An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

chronos

Chronos is a performance-oriented time library for Haskell, with a straightforward API. The main differences between this and the time library are: * Chronos uses machine integers where possible. This means that time-related arithmetic should be faster, with the drawback that the types are incapable of representing times that are very far in the future or the past (because Chronos provides nanosecond, rather than picosecond, resolution). For most users, this is not a hindrance. * Chronos provides ToJSON/FromJSON instances for serialisation. * Chronos provides Unbox instances for working with unboxed vectors. * Chronos provides Prim instances for working with byte arrays/primitive arrays. * Chronos uses normal non-overloaded haskell functions for encoding and decoding time. It provides attoparsec parsers for both Text and ByteString. Additionally, Chronos provides functions for encoding time to Text or ByteString. The http://hackage.haskell.org/package/time time> library accomplishes these with the Data.Time.Format module, which uses UNIX-style datetime format strings. The approach taken by Chronos is faster and catches more mistakes at compile time, at the cost of being less expressive.

Ecosystem
hackage.haskell.org
Latest Release
1.1.5
over 3 years ago
Versions
25
Downloads
15,765 total
Dependent Packages
12
Dependent Repos
17
Links
Registry hackage.haskell.org
Source Repository
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:hackage/chronos
spec
License BSD-3-Clause
First Release over 9 years ago
Last Synced 5 days ago
Repository
Stars 59 on GitHub
Forks 23 on GitHub
Rankings on hackage.haskell.org
Overall Top 9.3%
Dependent packages Top 2.4%
Forks Top 8.4%