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

Module documentation for 0.2.0.1

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 2ms"
getYears duration
-- will return 2
getDays duration
-- will return 763
getMs duration
-- will return 65923323002