Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Yann Esposito (Yogsototh) a5424df634
bumped version
pirms 2 gadiem
bench added type synonym Seconds and one benchmark pirms 5 gadiem
src/Data forgot to expose new function, cabal enhancement pirms 3 gadiem
test wip pirms 6 gadiem
.codeclimate.yml coveralls pirms 6 gadiem
.gitignore fix test pirms 2 gadiem
.travis.yml wip pirms 6 gadiem
LICENSE initial commit pirms 6 gadiem
README.md coveralls pirms 6 gadiem
Setup.hs initial commit pirms 6 gadiem
human-readable-duration.cabal bumped version pirms 2 gadiem
stack.yaml Shorter approximative duration (generally better for most usage) pirms 3 gadiem

README.md

Build Status

Hackage human-readable-duration human-readable-duration

Issue Count

Human Readable Duration

This is a minimal Haskell library to display duration. It is mostly unsafe as it uses only Int and Strings (not even Text nor ByteString).

Usage

> import Data.Duration
> let duration = 2*ms + 3*oneSecond + 2*minute + 33*day + 2*year
> humanReadableDuration duration
"2 years 33 days 2 min 3s 2ms"
> getYears duration
2
> getDays duration
763
> getMs duration
65923323002

Install

Install stack.

stack build