The human-readable-duration package

[Tags:benchmark, bsd3, library, test]

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

Properties

Versions 0.1.0.0, 0.1.1.0, 0.2.0.0, 0.2.0.1, 0.2.0.2, 0.2.0.3
Dependencies base (>=4.7 && <5) [details]
License BSD3
Author Yann Esposito
Maintainer yann.esposito@gmail.com
Category Time
Home page http://github.com/yogsototh/human-readable-duration#readme
Source repository head: git clone https://github.com/yogstoth/human-readable-duration
Uploaded Fri Jul 15 13:22:54 UTC 2016 by yogsototh
Distributions LTSHaskell:0.2.0.3, NixOS:0.2.0.3, Stackage:0.2.0.3, Tumbleweed:0.2.0.3
Downloads 433 total (21 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2016-07-15 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees