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.
In order to use this module you should start with the following imports:
import Data.Geo.Jord.Duration (Duration) import qualified Data.Geo.Jord.Duration as Duration
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
- duration :: ReadP Duration
- read :: String -> Maybe Duration
- add :: Duration -> Duration -> Duration
- subtract :: Duration -> Duration -> Duration
- zero :: Duration
The Duration
type
A duration with a resolution of 1 millisecond.
toMilliseconds :: Duration -> Int Source #
the number of milliseconds in duration.