Deprecated

In favour of

chronologique

Time to manipulate time

https://github.com/afcowie/chronologique/

Version on this page:0.3.1.1
LTS Haskell 22.14:0.3.1.3
Stackage Nightly 2024-03-28:0.3.1.3
Latest on Hackage:0.3.1.3

See all snapshots chronologique appears in

BSD-3-Clause licensed and maintained by Andrew Cowie
This version can be pinned in stack with:chronologique-0.3.1.1@sha256:0ed4ef08aa38d03b62e4f8aba66748370cd240dfbcb35b780c758fab63f47bbd,2883

Module documentation for 0.3.1.1

Used by 1 package in lts-15.3(full list with versions):

A simple type useful for representing timestamps as generated by system events, along with conveniences for converting between time types from common Haskell time libraries.

Our original use was wanting to conveniently measure things happening on distributed computer systems. Since machine clock cycles are in units of nanoseconds, this has the nice property that, assuming the system clock is not corrupted, two subsequent events from the same source process are likely to have monotonically increasing timestamps. And even if the system clock has skew, they're still decently likely to be unique per device. These TimeStamps thus make good keys when building Maps.

The core type is in Chrono.TimeStamp, see there for full documentation.