time-units-1.0.0: A basic library for defining units of time as types.

Safe Haskell | None
Language | Haskell98

Data.Time.Units

Description

This module defines types for many useful time periods, as well as mechanisms for converting between them.

Synopsis

- class TimeUnit a where
  - toMicroseconds :: a -> Integer
  - fromMicroseconds :: Integer -> a
- data Attosecond
- data Femtosecond
- data Picosecond
- data Nanosecond
- data Microsecond
- data Millisecond
- data Second
- data Minute
- data Hour
- data Day
- data Week
- data Fortnight
- addTime :: (TimeUnit a, TimeUnit b, TimeUnit c) => a -> b -> c
- subTime :: (TimeUnit a, TimeUnit b, TimeUnit c) => a -> b -> c
- convertUnit :: (TimeUnit a, TimeUnit b) => a -> b
- getCPUTimeWithUnit :: TimeUnit a => IO a

# Documentation

class TimeUnit a where Source #

A generic class that describes all the units of time. We use microseconds here because that tends to be what GHC (at least) tends to use as its system-level minimum tick size.

Methods

toMicroseconds :: a -> Integer Source #

Converts the given unit of time into microseconds, flooring the value if it comes to a fractional number of microseconds. (In other words: be careful, you may lose precision!)

fromMicroseconds :: Integer -> a Source #

Converts the given number of microseconds into the unit of time, flooring the value if it comes to a fraction number of the given unit. (In other words: be careful, you may lose precision!)

#### Instances

Instances details

TimeUnit Fortnight Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Fortnight -> Integer Source # fromMicroseconds :: Integer -> Fortnight Source #
TimeUnit Week Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Week -> Integer Source # fromMicroseconds :: Integer -> Week Source #
TimeUnit Day Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Day -> Integer Source # fromMicroseconds :: Integer -> Day Source #
TimeUnit Hour Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Hour -> Integer Source # fromMicroseconds :: Integer -> Hour Source #
TimeUnit Minute Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Minute -> Integer Source # fromMicroseconds :: Integer -> Minute Source #
TimeUnit Second Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Second -> Integer Source # fromMicroseconds :: Integer -> Second Source #
TimeUnit Millisecond Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Millisecond -> Integer Source # fromMicroseconds :: Integer -> Millisecond Source #
TimeUnit Microsecond Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Microsecond -> Integer Source # fromMicroseconds :: Integer -> Microsecond Source #
TimeUnit Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Nanosecond -> Integer Source # fromMicroseconds :: Integer -> Nanosecond Source #
TimeUnit Picosecond Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Picosecond -> Integer Source # fromMicroseconds :: Integer -> Picosecond Source #
TimeUnit Femtosecond Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Femtosecond -> Integer Source # fromMicroseconds :: Integer -> Femtosecond Source #
TimeUnit Attosecond Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Attosecond -> Integer Source # fromMicroseconds :: Integer -> Attosecond Source #

data Attosecond Source #

#### Instances

Instances details

Enum Attosecond Source # |
Instance details Defined in Data.Time.Units Methods succ :: Attosecond -> Attosecond pred :: Attosecond -> Attosecond toEnum :: Int -> Attosecond fromEnum :: Attosecond -> Int enumFrom :: Attosecond -> [Attosecond] enumFromThen :: Attosecond -> Attosecond -> [Attosecond] enumFromTo :: Attosecond -> Attosecond -> [Attosecond] enumFromThenTo :: Attosecond -> Attosecond -> Attosecond -> [Attosecond]
Eq Attosecond Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Attosecond -> Attosecond -> Bool (/=) :: Attosecond -> Attosecond -> Bool
Integral Attosecond Source # |
Instance details Defined in Data.Time.Units Methods quot :: Attosecond -> Attosecond -> Attosecond rem :: Attosecond -> Attosecond -> Attosecond div :: Attosecond -> Attosecond -> Attosecond mod :: Attosecond -> Attosecond -> Attosecond quotRem :: Attosecond -> Attosecond -> (Attosecond, Attosecond) divMod :: Attosecond -> Attosecond -> (Attosecond, Attosecond) toInteger :: Attosecond -> Integer
Data Attosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Attosecond -> c Attosecond

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Attosecond

toConstr :: Attosecond -> Constr

dataTypeOf :: Attosecond -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Attosecond)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Attosecond)

gmapT :: (forall b. Data b => b -> b) -> Attosecond -> Attosecond

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Attosecond -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Attosecond -> r

gmapQ :: (forall d. Data d => d -> u) -> Attosecond -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Attosecond -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Attosecond -> m Attosecond

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Attosecond -> m Attosecond

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Attosecond -> m Attosecond

Num Attosecond Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Attosecond -> Attosecond -> Attosecond (-) :: Attosecond -> Attosecond -> Attosecond (*) :: Attosecond -> Attosecond -> Attosecond negate :: Attosecond -> Attosecond abs :: Attosecond -> Attosecond signum :: Attosecond -> Attosecond fromInteger :: Integer -> Attosecond
Ord Attosecond Source # |
Instance details Defined in Data.Time.Units Methods compare :: Attosecond -> Attosecond -> Ordering (<) :: Attosecond -> Attosecond -> Bool (<=) :: Attosecond -> Attosecond -> Bool (>) :: Attosecond -> Attosecond -> Bool (>=) :: Attosecond -> Attosecond -> Bool max :: Attosecond -> Attosecond -> Attosecond min :: Attosecond -> Attosecond -> Attosecond
Read Attosecond Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Attosecond readList :: ReadS [Attosecond] readPrec :: ReadPrec Attosecond readListPrec :: ReadPrec [Attosecond]
Real Attosecond Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Attosecond -> Rational
Show Attosecond Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Attosecond -> ShowS show :: Attosecond -> String showList :: [Attosecond] -> ShowS
Ix Attosecond Source # |
Instance details Defined in Data.Time.Units Methods range :: (Attosecond, Attosecond) -> [Attosecond] index :: (Attosecond, Attosecond) -> Attosecond -> Int unsafeIndex :: (Attosecond, Attosecond) -> Attosecond -> Int inRange :: (Attosecond, Attosecond) -> Attosecond -> Bool rangeSize :: (Attosecond, Attosecond) -> Int unsafeRangeSize :: (Attosecond, Attosecond) -> Int
TimeUnit Attosecond Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Attosecond -> Integer Source # fromMicroseconds :: Integer -> Attosecond Source #

data Femtosecond Source #

#### Instances

Instances details

Enum Femtosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

succ :: Femtosecond -> Femtosecond

pred :: Femtosecond -> Femtosecond

toEnum :: Int -> Femtosecond

fromEnum :: Femtosecond -> Int

enumFrom :: Femtosecond -> [Femtosecond]

enumFromThen :: Femtosecond -> Femtosecond -> [Femtosecond]

enumFromTo :: Femtosecond -> Femtosecond -> [Femtosecond]

enumFromThenTo :: Femtosecond -> Femtosecond -> Femtosecond -> [Femtosecond]

Eq Femtosecond Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Femtosecond -> Femtosecond -> Bool (/=) :: Femtosecond -> Femtosecond -> Bool
Integral Femtosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

quot :: Femtosecond -> Femtosecond -> Femtosecond

rem :: Femtosecond -> Femtosecond -> Femtosecond

div :: Femtosecond -> Femtosecond -> Femtosecond

mod :: Femtosecond -> Femtosecond -> Femtosecond

quotRem :: Femtosecond -> Femtosecond -> (Femtosecond, Femtosecond)

divMod :: Femtosecond -> Femtosecond -> (Femtosecond, Femtosecond)

toInteger :: Femtosecond -> Integer

Data Femtosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Femtosecond -> c Femtosecond

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Femtosecond

toConstr :: Femtosecond -> Constr

dataTypeOf :: Femtosecond -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Femtosecond)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Femtosecond)

gmapT :: (forall b. Data b => b -> b) -> Femtosecond -> Femtosecond

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Femtosecond -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Femtosecond -> r

gmapQ :: (forall d. Data d => d -> u) -> Femtosecond -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Femtosecond -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Femtosecond -> m Femtosecond

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Femtosecond -> m Femtosecond

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Femtosecond -> m Femtosecond

Num Femtosecond Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Femtosecond -> Femtosecond -> Femtosecond (-) :: Femtosecond -> Femtosecond -> Femtosecond (*) :: Femtosecond -> Femtosecond -> Femtosecond negate :: Femtosecond -> Femtosecond abs :: Femtosecond -> Femtosecond signum :: Femtosecond -> Femtosecond fromInteger :: Integer -> Femtosecond
Ord Femtosecond Source # |
Instance details Defined in Data.Time.Units Methods compare :: Femtosecond -> Femtosecond -> Ordering (<) :: Femtosecond -> Femtosecond -> Bool (<=) :: Femtosecond -> Femtosecond -> Bool (>) :: Femtosecond -> Femtosecond -> Bool (>=) :: Femtosecond -> Femtosecond -> Bool max :: Femtosecond -> Femtosecond -> Femtosecond min :: Femtosecond -> Femtosecond -> Femtosecond
Read Femtosecond Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Femtosecond readList :: ReadS [Femtosecond] readPrec :: ReadPrec Femtosecond readListPrec :: ReadPrec [Femtosecond]
Real Femtosecond Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Femtosecond -> Rational
Show Femtosecond Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Femtosecond -> ShowS show :: Femtosecond -> String showList :: [Femtosecond] -> ShowS
Ix Femtosecond Source # |
Instance details Defined in Data.Time.Units Methods range :: (Femtosecond, Femtosecond) -> [Femtosecond] index :: (Femtosecond, Femtosecond) -> Femtosecond -> Int unsafeIndex :: (Femtosecond, Femtosecond) -> Femtosecond -> Int inRange :: (Femtosecond, Femtosecond) -> Femtosecond -> Bool rangeSize :: (Femtosecond, Femtosecond) -> Int unsafeRangeSize :: (Femtosecond, Femtosecond) -> Int
TimeUnit Femtosecond Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Femtosecond -> Integer Source # fromMicroseconds :: Integer -> Femtosecond Source #

data Picosecond Source #

#### Instances

Instances details

Enum Picosecond Source # |
Instance details Defined in Data.Time.Units Methods succ :: Picosecond -> Picosecond pred :: Picosecond -> Picosecond toEnum :: Int -> Picosecond fromEnum :: Picosecond -> Int enumFrom :: Picosecond -> [Picosecond] enumFromThen :: Picosecond -> Picosecond -> [Picosecond] enumFromTo :: Picosecond -> Picosecond -> [Picosecond] enumFromThenTo :: Picosecond -> Picosecond -> Picosecond -> [Picosecond]
Eq Picosecond Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Picosecond -> Picosecond -> Bool (/=) :: Picosecond -> Picosecond -> Bool
Integral Picosecond Source # |
Instance details Defined in Data.Time.Units Methods quot :: Picosecond -> Picosecond -> Picosecond rem :: Picosecond -> Picosecond -> Picosecond div :: Picosecond -> Picosecond -> Picosecond mod :: Picosecond -> Picosecond -> Picosecond quotRem :: Picosecond -> Picosecond -> (Picosecond, Picosecond) divMod :: Picosecond -> Picosecond -> (Picosecond, Picosecond) toInteger :: Picosecond -> Integer
Data Picosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Picosecond -> c Picosecond

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Picosecond

toConstr :: Picosecond -> Constr

dataTypeOf :: Picosecond -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Picosecond)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Picosecond)

gmapT :: (forall b. Data b => b -> b) -> Picosecond -> Picosecond

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Picosecond -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Picosecond -> r

gmapQ :: (forall d. Data d => d -> u) -> Picosecond -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Picosecond -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Picosecond -> m Picosecond

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Picosecond -> m Picosecond

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Picosecond -> m Picosecond

Num Picosecond Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Picosecond -> Picosecond -> Picosecond (-) :: Picosecond -> Picosecond -> Picosecond (*) :: Picosecond -> Picosecond -> Picosecond negate :: Picosecond -> Picosecond abs :: Picosecond -> Picosecond signum :: Picosecond -> Picosecond fromInteger :: Integer -> Picosecond
Ord Picosecond Source # |
Instance details Defined in Data.Time.Units Methods compare :: Picosecond -> Picosecond -> Ordering (<) :: Picosecond -> Picosecond -> Bool (<=) :: Picosecond -> Picosecond -> Bool (>) :: Picosecond -> Picosecond -> Bool (>=) :: Picosecond -> Picosecond -> Bool max :: Picosecond -> Picosecond -> Picosecond min :: Picosecond -> Picosecond -> Picosecond
Read Picosecond Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Picosecond readList :: ReadS [Picosecond] readPrec :: ReadPrec Picosecond readListPrec :: ReadPrec [Picosecond]
Real Picosecond Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Picosecond -> Rational
Show Picosecond Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Picosecond -> ShowS show :: Picosecond -> String showList :: [Picosecond] -> ShowS
Ix Picosecond Source # |
Instance details Defined in Data.Time.Units Methods range :: (Picosecond, Picosecond) -> [Picosecond] index :: (Picosecond, Picosecond) -> Picosecond -> Int unsafeIndex :: (Picosecond, Picosecond) -> Picosecond -> Int inRange :: (Picosecond, Picosecond) -> Picosecond -> Bool rangeSize :: (Picosecond, Picosecond) -> Int unsafeRangeSize :: (Picosecond, Picosecond) -> Int
TimeUnit Picosecond Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Picosecond -> Integer Source # fromMicroseconds :: Integer -> Picosecond Source #

data Nanosecond Source #

#### Instances

Instances details

Enum Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods succ :: Nanosecond -> Nanosecond pred :: Nanosecond -> Nanosecond toEnum :: Int -> Nanosecond fromEnum :: Nanosecond -> Int enumFrom :: Nanosecond -> [Nanosecond] enumFromThen :: Nanosecond -> Nanosecond -> [Nanosecond] enumFromTo :: Nanosecond -> Nanosecond -> [Nanosecond] enumFromThenTo :: Nanosecond -> Nanosecond -> Nanosecond -> [Nanosecond]
Eq Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Nanosecond -> Nanosecond -> Bool (/=) :: Nanosecond -> Nanosecond -> Bool
Integral Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods quot :: Nanosecond -> Nanosecond -> Nanosecond rem :: Nanosecond -> Nanosecond -> Nanosecond div :: Nanosecond -> Nanosecond -> Nanosecond mod :: Nanosecond -> Nanosecond -> Nanosecond quotRem :: Nanosecond -> Nanosecond -> (Nanosecond, Nanosecond) divMod :: Nanosecond -> Nanosecond -> (Nanosecond, Nanosecond) toInteger :: Nanosecond -> Integer
Data Nanosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Nanosecond -> c Nanosecond

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Nanosecond

toConstr :: Nanosecond -> Constr

dataTypeOf :: Nanosecond -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Nanosecond)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Nanosecond)

gmapT :: (forall b. Data b => b -> b) -> Nanosecond -> Nanosecond

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Nanosecond -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Nanosecond -> r

gmapQ :: (forall d. Data d => d -> u) -> Nanosecond -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Nanosecond -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Nanosecond -> m Nanosecond

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Nanosecond -> m Nanosecond

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Nanosecond -> m Nanosecond

Num Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Nanosecond -> Nanosecond -> Nanosecond (-) :: Nanosecond -> Nanosecond -> Nanosecond (*) :: Nanosecond -> Nanosecond -> Nanosecond negate :: Nanosecond -> Nanosecond abs :: Nanosecond -> Nanosecond signum :: Nanosecond -> Nanosecond fromInteger :: Integer -> Nanosecond
Ord Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods compare :: Nanosecond -> Nanosecond -> Ordering (<) :: Nanosecond -> Nanosecond -> Bool (<=) :: Nanosecond -> Nanosecond -> Bool (>) :: Nanosecond -> Nanosecond -> Bool (>=) :: Nanosecond -> Nanosecond -> Bool max :: Nanosecond -> Nanosecond -> Nanosecond min :: Nanosecond -> Nanosecond -> Nanosecond
Read Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Nanosecond readList :: ReadS [Nanosecond] readPrec :: ReadPrec Nanosecond readListPrec :: ReadPrec [Nanosecond]
Real Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Nanosecond -> Rational
Show Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Nanosecond -> ShowS show :: Nanosecond -> String showList :: [Nanosecond] -> ShowS
Ix Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods range :: (Nanosecond, Nanosecond) -> [Nanosecond] index :: (Nanosecond, Nanosecond) -> Nanosecond -> Int unsafeIndex :: (Nanosecond, Nanosecond) -> Nanosecond -> Int inRange :: (Nanosecond, Nanosecond) -> Nanosecond -> Bool rangeSize :: (Nanosecond, Nanosecond) -> Int unsafeRangeSize :: (Nanosecond, Nanosecond) -> Int
TimeUnit Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Nanosecond -> Integer Source # fromMicroseconds :: Integer -> Nanosecond Source #

data Microsecond Source #

#### Instances

Instances details

Enum Microsecond Source # |

Instance details

Defined in Data.Time.Units

Methods

succ :: Microsecond -> Microsecond

pred :: Microsecond -> Microsecond

toEnum :: Int -> Microsecond

fromEnum :: Microsecond -> Int

enumFrom :: Microsecond -> [Microsecond]

enumFromThen :: Microsecond -> Microsecond -> [Microsecond]

enumFromTo :: Microsecond -> Microsecond -> [Microsecond]

enumFromThenTo :: Microsecond -> Microsecond -> Microsecond -> [Microsecond]

Eq Microsecond Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Microsecond -> Microsecond -> Bool (/=) :: Microsecond -> Microsecond -> Bool
Integral Microsecond Source # |

Instance details

Defined in Data.Time.Units

Methods

quot :: Microsecond -> Microsecond -> Microsecond

rem :: Microsecond -> Microsecond -> Microsecond

div :: Microsecond -> Microsecond -> Microsecond

mod :: Microsecond -> Microsecond -> Microsecond

quotRem :: Microsecond -> Microsecond -> (Microsecond, Microsecond)

divMod :: Microsecond -> Microsecond -> (Microsecond, Microsecond)

toInteger :: Microsecond -> Integer

Data Microsecond Source # |

Instance details

Defined in Data.Time.Units

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Microsecond -> c Microsecond

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Microsecond

toConstr :: Microsecond -> Constr

dataTypeOf :: Microsecond -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Microsecond)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Microsecond)

gmapT :: (forall b. Data b => b -> b) -> Microsecond -> Microsecond

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Microsecond -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Microsecond -> r

gmapQ :: (forall d. Data d => d -> u) -> Microsecond -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Microsecond -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Microsecond -> m Microsecond

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Microsecond -> m Microsecond

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Microsecond -> m Microsecond

Num Microsecond Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Microsecond -> Microsecond -> Microsecond (-) :: Microsecond -> Microsecond -> Microsecond (*) :: Microsecond -> Microsecond -> Microsecond negate :: Microsecond -> Microsecond abs :: Microsecond -> Microsecond signum :: Microsecond -> Microsecond fromInteger :: Integer -> Microsecond
Ord Microsecond Source # |
Instance details Defined in Data.Time.Units Methods compare :: Microsecond -> Microsecond -> Ordering (<) :: Microsecond -> Microsecond -> Bool (<=) :: Microsecond -> Microsecond -> Bool (>) :: Microsecond -> Microsecond -> Bool (>=) :: Microsecond -> Microsecond -> Bool max :: Microsecond -> Microsecond -> Microsecond min :: Microsecond -> Microsecond -> Microsecond
Read Microsecond Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Microsecond readList :: ReadS [Microsecond] readPrec :: ReadPrec Microsecond readListPrec :: ReadPrec [Microsecond]
Real Microsecond Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Microsecond -> Rational
Show Microsecond Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Microsecond -> ShowS show :: Microsecond -> String showList :: [Microsecond] -> ShowS
Ix Microsecond Source # |
Instance details Defined in Data.Time.Units Methods range :: (Microsecond, Microsecond) -> [Microsecond] index :: (Microsecond, Microsecond) -> Microsecond -> Int unsafeIndex :: (Microsecond, Microsecond) -> Microsecond -> Int inRange :: (Microsecond, Microsecond) -> Microsecond -> Bool rangeSize :: (Microsecond, Microsecond) -> Int unsafeRangeSize :: (Microsecond, Microsecond) -> Int
TimeUnit Microsecond Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Microsecond -> Integer Source # fromMicroseconds :: Integer -> Microsecond Source #

data Millisecond Source #

#### Instances

Instances details

Enum Millisecond Source # |

Instance details

Defined in Data.Time.Units

Methods

succ :: Millisecond -> Millisecond

pred :: Millisecond -> Millisecond

toEnum :: Int -> Millisecond

fromEnum :: Millisecond -> Int

enumFrom :: Millisecond -> [Millisecond]

enumFromThen :: Millisecond -> Millisecond -> [Millisecond]

enumFromTo :: Millisecond -> Millisecond -> [Millisecond]

enumFromThenTo :: Millisecond -> Millisecond -> Millisecond -> [Millisecond]

Eq Millisecond Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Millisecond -> Millisecond -> Bool (/=) :: Millisecond -> Millisecond -> Bool
Integral Millisecond Source # |

Instance details

Defined in Data.Time.Units

Methods

quot :: Millisecond -> Millisecond -> Millisecond

rem :: Millisecond -> Millisecond -> Millisecond

div :: Millisecond -> Millisecond -> Millisecond

mod :: Millisecond -> Millisecond -> Millisecond

quotRem :: Millisecond -> Millisecond -> (Millisecond, Millisecond)

divMod :: Millisecond -> Millisecond -> (Millisecond, Millisecond)

toInteger :: Millisecond -> Integer

Data Millisecond Source # |

Instance details

Defined in Data.Time.Units

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Millisecond -> c Millisecond

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Millisecond

toConstr :: Millisecond -> Constr

dataTypeOf :: Millisecond -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Millisecond)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Millisecond)

gmapT :: (forall b. Data b => b -> b) -> Millisecond -> Millisecond

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Millisecond -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Millisecond -> r

gmapQ :: (forall d. Data d => d -> u) -> Millisecond -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Millisecond -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Millisecond -> m Millisecond

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Millisecond -> m Millisecond

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Millisecond -> m Millisecond

Num Millisecond Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Millisecond -> Millisecond -> Millisecond (-) :: Millisecond -> Millisecond -> Millisecond (*) :: Millisecond -> Millisecond -> Millisecond negate :: Millisecond -> Millisecond abs :: Millisecond -> Millisecond signum :: Millisecond -> Millisecond fromInteger :: Integer -> Millisecond
Ord Millisecond Source # |
Instance details Defined in Data.Time.Units Methods compare :: Millisecond -> Millisecond -> Ordering (<) :: Millisecond -> Millisecond -> Bool (<=) :: Millisecond -> Millisecond -> Bool (>) :: Millisecond -> Millisecond -> Bool (>=) :: Millisecond -> Millisecond -> Bool max :: Millisecond -> Millisecond -> Millisecond min :: Millisecond -> Millisecond -> Millisecond
Read Millisecond Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Millisecond readList :: ReadS [Millisecond] readPrec :: ReadPrec Millisecond readListPrec :: ReadPrec [Millisecond]
Real Millisecond Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Millisecond -> Rational
Show Millisecond Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Millisecond -> ShowS show :: Millisecond -> String showList :: [Millisecond] -> ShowS
Ix Millisecond Source # |
Instance details Defined in Data.Time.Units Methods range :: (Millisecond, Millisecond) -> [Millisecond] index :: (Millisecond, Millisecond) -> Millisecond -> Int unsafeIndex :: (Millisecond, Millisecond) -> Millisecond -> Int inRange :: (Millisecond, Millisecond) -> Millisecond -> Bool rangeSize :: (Millisecond, Millisecond) -> Int unsafeRangeSize :: (Millisecond, Millisecond) -> Int
TimeUnit Millisecond Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Millisecond -> Integer Source # fromMicroseconds :: Integer -> Millisecond Source #

data Second Source #

#### Instances

Instances details

Enum Second Source # |
Instance details Defined in Data.Time.Units Methods succ :: Second -> Second pred :: Second -> Second toEnum :: Int -> Second fromEnum :: Second -> Int enumFrom :: Second -> [Second] enumFromThen :: Second -> Second -> [Second] enumFromTo :: Second -> Second -> [Second] enumFromThenTo :: Second -> Second -> Second -> [Second]
Eq Second Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Second -> Second -> Bool (/=) :: Second -> Second -> Bool
Integral Second Source # |
Instance details Defined in Data.Time.Units Methods quot :: Second -> Second -> Second rem :: Second -> Second -> Second div :: Second -> Second -> Second mod :: Second -> Second -> Second quotRem :: Second -> Second -> (Second, Second) divMod :: Second -> Second -> (Second, Second) toInteger :: Second -> Integer
Data Second Source # |

Instance details

Defined in Data.Time.Units

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Second -> c Second

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Second

toConstr :: Second -> Constr

dataTypeOf :: Second -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Second)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Second)

gmapT :: (forall b. Data b => b -> b) -> Second -> Second

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Second -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Second -> r

gmapQ :: (forall d. Data d => d -> u) -> Second -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Second -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Second -> m Second

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Second -> m Second

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Second -> m Second

Num Second Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Second -> Second -> Second (-) :: Second -> Second -> Second (*) :: Second -> Second -> Second negate :: Second -> Second abs :: Second -> Second signum :: Second -> Second fromInteger :: Integer -> Second
Ord Second Source # |
Instance details Defined in Data.Time.Units Methods compare :: Second -> Second -> Ordering (<) :: Second -> Second -> Bool (<=) :: Second -> Second -> Bool (>) :: Second -> Second -> Bool (>=) :: Second -> Second -> Bool max :: Second -> Second -> Second min :: Second -> Second -> Second
Read Second Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Second readList :: ReadS [Second] readPrec :: ReadPrec Second readListPrec :: ReadPrec [Second]
Real Second Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Second -> Rational
Show Second Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Second -> ShowS show :: Second -> String showList :: [Second] -> ShowS
Ix Second Source # |
Instance details Defined in Data.Time.Units Methods range :: (Second, Second) -> [Second] index :: (Second, Second) -> Second -> Int unsafeIndex :: (Second, Second) -> Second -> Int inRange :: (Second, Second) -> Second -> Bool rangeSize :: (Second, Second) -> Int unsafeRangeSize :: (Second, Second) -> Int
TimeUnit Second Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Second -> Integer Source # fromMicroseconds :: Integer -> Second Source #

data Minute Source #

#### Instances

Instances details

Enum Minute Source # |
Instance details Defined in Data.Time.Units Methods succ :: Minute -> Minute pred :: Minute -> Minute toEnum :: Int -> Minute fromEnum :: Minute -> Int enumFrom :: Minute -> [Minute] enumFromThen :: Minute -> Minute -> [Minute] enumFromTo :: Minute -> Minute -> [Minute] enumFromThenTo :: Minute -> Minute -> Minute -> [Minute]
Eq Minute Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Minute -> Minute -> Bool (/=) :: Minute -> Minute -> Bool
Integral Minute Source # |
Instance details Defined in Data.Time.Units Methods quot :: Minute -> Minute -> Minute rem :: Minute -> Minute -> Minute div :: Minute -> Minute -> Minute mod :: Minute -> Minute -> Minute quotRem :: Minute -> Minute -> (Minute, Minute) divMod :: Minute -> Minute -> (Minute, Minute) toInteger :: Minute -> Integer
Data Minute Source # |

Instance details

Defined in Data.Time.Units

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Minute -> c Minute

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Minute

toConstr :: Minute -> Constr

dataTypeOf :: Minute -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Minute)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Minute)

gmapT :: (forall b. Data b => b -> b) -> Minute -> Minute

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Minute -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Minute -> r

gmapQ :: (forall d. Data d => d -> u) -> Minute -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Minute -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Minute -> m Minute

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Minute -> m Minute

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Minute -> m Minute

Num Minute Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Minute -> Minute -> Minute (-) :: Minute -> Minute -> Minute (*) :: Minute -> Minute -> Minute negate :: Minute -> Minute abs :: Minute -> Minute signum :: Minute -> Minute fromInteger :: Integer -> Minute
Ord Minute Source # |
Instance details Defined in Data.Time.Units Methods compare :: Minute -> Minute -> Ordering (<) :: Minute -> Minute -> Bool (<=) :: Minute -> Minute -> Bool (>) :: Minute -> Minute -> Bool (>=) :: Minute -> Minute -> Bool max :: Minute -> Minute -> Minute min :: Minute -> Minute -> Minute
Read Minute Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Minute readList :: ReadS [Minute] readPrec :: ReadPrec Minute readListPrec :: ReadPrec [Minute]
Real Minute Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Minute -> Rational
Show Minute Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Minute -> ShowS show :: Minute -> String showList :: [Minute] -> ShowS
Ix Minute Source # |
Instance details Defined in Data.Time.Units Methods range :: (Minute, Minute) -> [Minute] index :: (Minute, Minute) -> Minute -> Int unsafeIndex :: (Minute, Minute) -> Minute -> Int inRange :: (Minute, Minute) -> Minute -> Bool rangeSize :: (Minute, Minute) -> Int unsafeRangeSize :: (Minute, Minute) -> Int
TimeUnit Minute Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Minute -> Integer Source # fromMicroseconds :: Integer -> Minute Source #

data Hour Source #

#### Instances

Instances details

Enum Hour Source # |
Instance details Defined in Data.Time.Units Methods succ :: Hour -> Hour pred :: Hour -> Hour toEnum :: Int -> Hour fromEnum :: Hour -> Int enumFrom :: Hour -> [Hour] enumFromThen :: Hour -> Hour -> [Hour] enumFromTo :: Hour -> Hour -> [Hour] enumFromThenTo :: Hour -> Hour -> Hour -> [Hour]
Eq Hour Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Hour -> Hour -> Bool (/=) :: Hour -> Hour -> Bool
Integral Hour Source # |
Instance details Defined in Data.Time.Units Methods quot :: Hour -> Hour -> Hour rem :: Hour -> Hour -> Hour div :: Hour -> Hour -> Hour mod :: Hour -> Hour -> Hour quotRem :: Hour -> Hour -> (Hour, Hour) divMod :: Hour -> Hour -> (Hour, Hour) toInteger :: Hour -> Integer
Data Hour Source # |

Instance details

Defined in Data.Time.Units

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Hour -> c Hour

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Hour

toConstr :: Hour -> Constr

dataTypeOf :: Hour -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Hour)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Hour)

gmapT :: (forall b. Data b => b -> b) -> Hour -> Hour

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Hour -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Hour -> r

gmapQ :: (forall d. Data d => d -> u) -> Hour -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Hour -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Hour -> m Hour

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Hour -> m Hour

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Hour -> m Hour

Num Hour Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Hour -> Hour -> Hour (-) :: Hour -> Hour -> Hour (*) :: Hour -> Hour -> Hour negate :: Hour -> Hour abs :: Hour -> Hour signum :: Hour -> Hour fromInteger :: Integer -> Hour
Ord Hour Source # |
Instance details Defined in Data.Time.Units Methods compare :: Hour -> Hour -> Ordering (<) :: Hour -> Hour -> Bool (<=) :: Hour -> Hour -> Bool (>) :: Hour -> Hour -> Bool (>=) :: Hour -> Hour -> Bool max :: Hour -> Hour -> Hour min :: Hour -> Hour -> Hour
Read Hour Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Hour readList :: ReadS [Hour] readPrec :: ReadPrec Hour readListPrec :: ReadPrec [Hour]
Real Hour Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Hour -> Rational
Show Hour Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Hour -> ShowS show :: Hour -> String showList :: [Hour] -> ShowS
Ix Hour Source # |
Instance details Defined in Data.Time.Units Methods range :: (Hour, Hour) -> [Hour] index :: (Hour, Hour) -> Hour -> Int unsafeIndex :: (Hour, Hour) -> Hour -> Int inRange :: (Hour, Hour) -> Hour -> Bool rangeSize :: (Hour, Hour) -> Int unsafeRangeSize :: (Hour, Hour) -> Int
TimeUnit Hour Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Hour -> Integer Source # fromMicroseconds :: Integer -> Hour Source #

data Day Source #

#### Instances

Instances details

Enum Day Source # |
Instance details Defined in Data.Time.Units Methods succ :: Day -> Day pred :: Day -> Day toEnum :: Int -> Day fromEnum :: Day -> Int enumFrom :: Day -> [Day] enumFromThen :: Day -> Day -> [Day] enumFromTo :: Day -> Day -> [Day] enumFromThenTo :: Day -> Day -> Day -> [Day]
Eq Day Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Day -> Day -> Bool (/=) :: Day -> Day -> Bool
Integral Day Source # |
Instance details Defined in Data.Time.Units Methods quot :: Day -> Day -> Day rem :: Day -> Day -> Day div :: Day -> Day -> Day mod :: Day -> Day -> Day quotRem :: Day -> Day -> (Day, Day) divMod :: Day -> Day -> (Day, Day) toInteger :: Day -> Integer
Data Day Source # |

Instance details

Defined in Data.Time.Units

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Day -> c Day

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Day

toConstr :: Day -> Constr

dataTypeOf :: Day -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Day)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Day)

gmapT :: (forall b. Data b => b -> b) -> Day -> Day

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Day -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Day -> r

gmapQ :: (forall d. Data d => d -> u) -> Day -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Day -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Day -> m Day

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Day -> m Day

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Day -> m Day

Num Day Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Day -> Day -> Day (-) :: Day -> Day -> Day (*) :: Day -> Day -> Day negate :: Day -> Day abs :: Day -> Day signum :: Day -> Day fromInteger :: Integer -> Day
Ord Day Source # |
Instance details Defined in Data.Time.Units Methods compare :: Day -> Day -> Ordering (<) :: Day -> Day -> Bool (<=) :: Day -> Day -> Bool (>) :: Day -> Day -> Bool (>=) :: Day -> Day -> Bool max :: Day -> Day -> Day min :: Day -> Day -> Day
Read Day Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Day readList :: ReadS [Day] readPrec :: ReadPrec Day readListPrec :: ReadPrec [Day]
Real Day Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Day -> Rational
Show Day Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Day -> ShowS show :: Day -> String showList :: [Day] -> ShowS
Ix Day Source # |
Instance details Defined in Data.Time.Units Methods range :: (Day, Day) -> [Day] index :: (Day, Day) -> Day -> Int unsafeIndex :: (Day, Day) -> Day -> Int inRange :: (Day, Day) -> Day -> Bool rangeSize :: (Day, Day) -> Int unsafeRangeSize :: (Day, Day) -> Int
TimeUnit Day Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Day -> Integer Source # fromMicroseconds :: Integer -> Day Source #

data Week Source #

#### Instances

Instances details

Enum Week Source # |
Instance details Defined in Data.Time.Units Methods succ :: Week -> Week pred :: Week -> Week toEnum :: Int -> Week fromEnum :: Week -> Int enumFrom :: Week -> [Week] enumFromThen :: Week -> Week -> [Week] enumFromTo :: Week -> Week -> [Week] enumFromThenTo :: Week -> Week -> Week -> [Week]
Eq Week Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Week -> Week -> Bool (/=) :: Week -> Week -> Bool
Integral Week Source # |
Instance details Defined in Data.Time.Units Methods quot :: Week -> Week -> Week rem :: Week -> Week -> Week div :: Week -> Week -> Week mod :: Week -> Week -> Week quotRem :: Week -> Week -> (Week, Week) divMod :: Week -> Week -> (Week, Week) toInteger :: Week -> Integer
Data Week Source # |

Instance details

Defined in Data.Time.Units

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Week -> c Week

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Week

toConstr :: Week -> Constr

dataTypeOf :: Week -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Week)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Week)

gmapT :: (forall b. Data b => b -> b) -> Week -> Week

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Week -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Week -> r

gmapQ :: (forall d. Data d => d -> u) -> Week -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Week -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Week -> m Week

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Week -> m Week

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Week -> m Week

Num Week Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Week -> Week -> Week (-) :: Week -> Week -> Week (*) :: Week -> Week -> Week negate :: Week -> Week abs :: Week -> Week signum :: Week -> Week fromInteger :: Integer -> Week
Ord Week Source # |
Instance details Defined in Data.Time.Units Methods compare :: Week -> Week -> Ordering (<) :: Week -> Week -> Bool (<=) :: Week -> Week -> Bool (>) :: Week -> Week -> Bool (>=) :: Week -> Week -> Bool max :: Week -> Week -> Week min :: Week -> Week -> Week
Read Week Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Week readList :: ReadS [Week] readPrec :: ReadPrec Week readListPrec :: ReadPrec [Week]
Real Week Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Week -> Rational
Show Week Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Week -> ShowS show :: Week -> String showList :: [Week] -> ShowS
Ix Week Source # |
Instance details Defined in Data.Time.Units Methods range :: (Week, Week) -> [Week] index :: (Week, Week) -> Week -> Int unsafeIndex :: (Week, Week) -> Week -> Int inRange :: (Week, Week) -> Week -> Bool rangeSize :: (Week, Week) -> Int unsafeRangeSize :: (Week, Week) -> Int
TimeUnit Week Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Week -> Integer Source # fromMicroseconds :: Integer -> Week Source #

data Fortnight Source #

#### Instances

Instances details

Enum Fortnight Source # |
Instance details Defined in Data.Time.Units Methods succ :: Fortnight -> Fortnight pred :: Fortnight -> Fortnight toEnum :: Int -> Fortnight fromEnum :: Fortnight -> Int enumFrom :: Fortnight -> [Fortnight] enumFromThen :: Fortnight -> Fortnight -> [Fortnight] enumFromTo :: Fortnight -> Fortnight -> [Fortnight] enumFromThenTo :: Fortnight -> Fortnight -> Fortnight -> [Fortnight]
Eq Fortnight Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Fortnight -> Fortnight -> Bool (/=) :: Fortnight -> Fortnight -> Bool
Integral Fortnight Source # |
Instance details Defined in Data.Time.Units Methods quot :: Fortnight -> Fortnight -> Fortnight rem :: Fortnight -> Fortnight -> Fortnight div :: Fortnight -> Fortnight -> Fortnight mod :: Fortnight -> Fortnight -> Fortnight quotRem :: Fortnight -> Fortnight -> (Fortnight, Fortnight) divMod :: Fortnight -> Fortnight -> (Fortnight, Fortnight) toInteger :: Fortnight -> Integer
Data Fortnight Source # |

Instance details

Defined in Data.Time.Units

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Fortnight -> c Fortnight

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Fortnight

toConstr :: Fortnight -> Constr

dataTypeOf :: Fortnight -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Fortnight)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Fortnight)

gmapT :: (forall b. Data b => b -> b) -> Fortnight -> Fortnight

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Fortnight -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Fortnight -> r

gmapQ :: (forall d. Data d => d -> u) -> Fortnight -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Fortnight -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Fortnight -> m Fortnight

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Fortnight -> m Fortnight

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Fortnight -> m Fortnight

Num Fortnight Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Fortnight -> Fortnight -> Fortnight (-) :: Fortnight -> Fortnight -> Fortnight (*) :: Fortnight -> Fortnight -> Fortnight negate :: Fortnight -> Fortnight abs :: Fortnight -> Fortnight signum :: Fortnight -> Fortnight fromInteger :: Integer -> Fortnight
Ord Fortnight Source # |
Instance details Defined in Data.Time.Units Methods compare :: Fortnight -> Fortnight -> Ordering (<) :: Fortnight -> Fortnight -> Bool (<=) :: Fortnight -> Fortnight -> Bool (>) :: Fortnight -> Fortnight -> Bool (>=) :: Fortnight -> Fortnight -> Bool max :: Fortnight -> Fortnight -> Fortnight min :: Fortnight -> Fortnight -> Fortnight
Read Fortnight Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Fortnight readList :: ReadS [Fortnight] readPrec :: ReadPrec Fortnight readListPrec :: ReadPrec [Fortnight]
Real Fortnight Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Fortnight -> Rational
Show Fortnight Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Fortnight -> ShowS show :: Fortnight -> String showList :: [Fortnight] -> ShowS
Ix Fortnight Source # |
Instance details Defined in Data.Time.Units Methods range :: (Fortnight, Fortnight) -> [Fortnight] index :: (Fortnight, Fortnight) -> Fortnight -> Int unsafeIndex :: (Fortnight, Fortnight) -> Fortnight -> Int inRange :: (Fortnight, Fortnight) -> Fortnight -> Bool rangeSize :: (Fortnight, Fortnight) -> Int unsafeRangeSize :: (Fortnight, Fortnight) -> Int
TimeUnit Fortnight Source # |
Instance details Defined in Data.Time.Units Methods toMicroseconds :: Fortnight -> Integer Source # fromMicroseconds :: Integer -> Fortnight Source #

addTime :: (TimeUnit a, TimeUnit b, TimeUnit c) => a -> b -> c Source #

Add two times together to get a useful third time unit. As per usual, you'll want to make sure that you are careful regarding precision. This function goes through microseconds as an intermediary form.

subTime :: (TimeUnit a, TimeUnit b, TimeUnit c) => a -> b -> c Source #

Subtract the second time from the first, to get a useful third time unit. As per usual, you'll want to make sure that you are careful regarding precision. This function goes through microseconds as an intermediary form.

convertUnit :: (TimeUnit a, TimeUnit b) => a -> b Source #

Convert one time unit to another. Note that if you move from a smaller time unit to a larger one, or between two time units smaller than a microsecond, you will lose precision.

getCPUTimeWithUnit :: TimeUnit a => IO a Source #

Get the current CPU time in your favorite units. This is probably not very useful in itself, but is likely useful for comparison purposes ...