BSD-3-Clause licensed by Yann Esposito
Maintained by [email protected]

Module documentation for 0.2.1.2

This version can be pinned in stack with:[email protected]:865f49794ed013e725486b36e1708cb689ee205b3f8797723f17f4addceeea20,1745

Build Status

Hackage human-readable-duration human-readable-duration

Issue Count

Human Readable Duration

This is a minimal Haskell library to display duration. It is mostly unsafe as it uses only Int and Strings (not even Text nor ByteString).

Usage

> import Data.Duration
> let duration = 2*ms + 3*oneSecond + 2*minute + 33*day + 2*year
> humanReadableDuration duration
"2 years 33 days 2 min 3s 2ms"
> getYears duration
2
> getDays duration
763
> getMs duration
65923323002

Install

Install stack.

stack build
Depends on 1 package(full list with versions):