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.0@sha256:f38519bf7538773d84ae654f92c972e99f8683e93d538b9dfff1227b0c39ac01,1420

Module documentation for 0.2.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 2ms"
getYears duration
-- will return 2
getDays duration
-- will return 763
getMs duration
-- will return 65923323002