BSD-3-Clause licensed by Yann Esposito
Maintained by [email protected]
This version can be pinned in stack with:human-readable-duration-0.1.1.0@sha256:2e9b71270fa2d9665ffab64e284248eb8f62899b672b7a41713923aeefd1a45f,1455

Module documentation for 0.1.1.0

Depends on 2 packages(full list with versions):

This is a minimal Haskell library to display duration.

let duration = 2 * ms + 3 * oneSecond + 2 * minute + 33*day + 2*year
humanReadableDuration duration
-- will return: "2 years 33 days 2 min 3s 2ms"
getYears duration
-- will return 2
getDays duration
-- will return 763
getMs duration
-- will return 65923323002