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

Module documentation for 0.1.0.0

Depends on 1 package(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 32ms"
getYears duration
-- will return 2
getDays duration
-- will return 730
getMs duration
-- will return 730