Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- humanReadableDuration :: Int -> String
- humanReadableDiffTime :: DiffTime -> String
- humanReadableNominalDiffTime :: NominalDiffTime -> String
- ms :: Int
- oneSecond :: Int
- minute :: Int
- hour :: Int
- day :: Int
- year :: Int
- getMs :: Int -> Int
- getSeconds :: Int -> Int
- getMinutes :: Int -> Int
- getHours :: Int -> Int
- getDays :: Int -> Int
- getYears :: Int -> Int
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"
humanReadableDiffTime :: DiffTime -> String Source #
Give a human readable output of a DiffTime
from the time library.
humanReadableNominalDiffTime :: NominalDiffTime -> String Source #
Give a human readable output of a NominalDiffTime
from the time library.
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