human-readable-duration: Provide duration helper
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
Downloads
- human-readable-duration-0.1.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.1.0.0, 0.1.1.0, 0.2.0.0, 0.2.0.1, 0.2.0.2, 0.2.0.3, 0.2.1.0, 0.2.1.1, 0.2.1.2, 0.2.1.3, 0.2.1.4 |
---|---|
Dependencies | base (>=4.7 && <5) [details] |
License | BSD-3-Clause |
Author | Yann Esposito |
Maintainer | yann.esposito@gmail.com |
Category | Time |
Home page | http://github.com/yogsototh/human-readable-duration#readme |
Source repo | head: git clone https://github.com/yogstoth/human-readable-duration |
Uploaded | by yogsototh at 2015-08-13T15:14:50Z |
Distributions | LTSHaskell:0.2.1.4, NixOS:0.2.1.4, Stackage:0.2.1.4 |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 7241 total (16 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2015-08-13 [all 1 reports] |