Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.Duration
Documentation
humanReadableDuration :: Int -> String Source
humanReadableDuration
take some time in micro-seconds and render a human readable 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"
getSeconds :: Int -> Int Source
number of seconds given a duration in micro seconds
getMinutes :: Int -> Int Source
number of minutes given a duration in micro seconds