A type class for converting between time units using Integer as the intermediate and the widest representation with a nanosecond resolution. This system of units can represent arbitrarily large times but provides least efficient arithmetic operations due to Integer arithmetic.
NOTE: Converting to and from units may truncate the value depending on the original value and the size and resolution of the destination unit.
A type class for converting between units of time using TimeSpec as the intermediate representation. This system of units can represent up to ~292 billion years at nanosecond resolution with reasonably efficient arithmetic operations.
NOTE: Converting to and from units may truncate the value depending on the original value and the size and resolution of the destination unit.
Instances4TimeUnit
TimeUnit TimeSpecDefined in streamly-core-0.2.2 · Streamly.Internal.Data.Time.UnitsTimeUnit MicroSecond64Defined in streamly-core-0.2.2 · Streamly.Internal.Data.Time.UnitsTimeUnit MilliSecond64Defined in streamly-core-0.2.2 · Streamly.Internal.Data.Time.UnitsTimeUnit NanoSecond64Defined in streamly-core-0.2.2 · Streamly.Internal.Data.Time.Units