Copyright | (c) 2020 Cedric Liegeois |
---|---|
License | BSD3 |
Maintainer | Cedric Liegeois <ofmooseandmen@yahoo.fr> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Types and functions for working with (signed) durations.
Synopsis
- data Duration
- toMilliseconds :: Duration -> Int
- milliseconds :: Double -> Duration
- hours :: Double -> Duration
- minutes :: Double -> Duration
- seconds :: Double -> Duration
- hms :: Int -> Int -> Double -> Duration
- toHours :: Duration -> Double
- toMinutes :: Duration -> Double
- toSeconds :: Duration -> Double
- durationP :: ReadP Duration
- readDuration :: String -> Maybe Duration
The Duration
type
A duration with a resolution of 1 millisecond.
toMilliseconds :: Duration -> Int Source #
the number of milliseconds in duration.