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

data Attosecond Source #

#### Instances

Instances details

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 Source #

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

toConstr :: Attosecond -> Constr Source #

dataTypeOf :: Attosecond -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Enum Attosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

succ :: Attosecond -> Attosecond Source #

pred :: Attosecond -> Attosecond Source #

toEnum :: Int -> Attosecond Source #

fromEnum :: Attosecond -> Int Source #

enumFrom :: Attosecond -> [Attosecond] Source #

enumFromThen :: Attosecond -> Attosecond -> [Attosecond] Source #

enumFromTo :: Attosecond -> Attosecond -> [Attosecond] Source #

enumFromThenTo :: Attosecond -> Attosecond -> Attosecond -> [Attosecond] Source #

Ix Attosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

range :: (Attosecond, Attosecond) -> [Attosecond] Source #

index :: (Attosecond, Attosecond) -> Attosecond -> Int Source #

unsafeIndex :: (Attosecond, Attosecond) -> Attosecond -> Int Source #

inRange :: (Attosecond, Attosecond) -> Attosecond -> Bool Source #

rangeSize :: (Attosecond, Attosecond) -> Int Source #

unsafeRangeSize :: (Attosecond, Attosecond) -> Int Source #

Num Attosecond Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Attosecond -> Attosecond -> Attosecond Source # (-) :: Attosecond -> Attosecond -> Attosecond Source # (*) :: Attosecond -> Attosecond -> Attosecond Source # negate :: Attosecond -> Attosecond Source # abs :: Attosecond -> Attosecond Source # signum :: Attosecond -> Attosecond Source # fromInteger :: Integer -> Attosecond Source #
Read Attosecond Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Attosecond Source # readList :: ReadS [Attosecond] Source # readPrec :: ReadPrec Attosecond Source # readListPrec :: ReadPrec [Attosecond] Source #
Integral Attosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

quot :: Attosecond -> Attosecond -> Attosecond Source #

rem :: Attosecond -> Attosecond -> Attosecond Source #

div :: Attosecond -> Attosecond -> Attosecond Source #

mod :: Attosecond -> Attosecond -> Attosecond Source #

quotRem :: Attosecond -> Attosecond -> (Attosecond, Attosecond) Source #

divMod :: Attosecond -> Attosecond -> (Attosecond, Attosecond) Source #

toInteger :: Attosecond -> Integer Source #

Real Attosecond Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Attosecond -> Rational Source #
Show Attosecond Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Attosecond -> ShowS Source # show :: Attosecond -> String Source # showList :: [Attosecond] -> ShowS Source #
Eq Attosecond Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Attosecond -> Attosecond -> Bool Source # (/=) :: Attosecond -> Attosecond -> Bool Source #
Ord Attosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

compare :: Attosecond -> Attosecond -> Ordering Source #

(<) :: Attosecond -> Attosecond -> Bool Source #

(<=) :: Attosecond -> Attosecond -> Bool Source #

(>) :: Attosecond -> Attosecond -> Bool Source #

(>=) :: Attosecond -> Attosecond -> Bool Source #

max :: Attosecond -> Attosecond -> Attosecond Source #

min :: Attosecond -> Attosecond -> Attosecond Source #

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

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 Source #

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

toConstr :: Femtosecond -> Constr Source #

dataTypeOf :: Femtosecond -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Enum Femtosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

succ :: Femtosecond -> Femtosecond Source #

pred :: Femtosecond -> Femtosecond Source #

toEnum :: Int -> Femtosecond Source #

fromEnum :: Femtosecond -> Int Source #

enumFrom :: Femtosecond -> [Femtosecond] Source #

enumFromThen :: Femtosecond -> Femtosecond -> [Femtosecond] Source #

enumFromTo :: Femtosecond -> Femtosecond -> [Femtosecond] Source #

enumFromThenTo :: Femtosecond -> Femtosecond -> Femtosecond -> [Femtosecond] Source #

Ix Femtosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

range :: (Femtosecond, Femtosecond) -> [Femtosecond] Source #

index :: (Femtosecond, Femtosecond) -> Femtosecond -> Int Source #

unsafeIndex :: (Femtosecond, Femtosecond) -> Femtosecond -> Int Source #

inRange :: (Femtosecond, Femtosecond) -> Femtosecond -> Bool Source #

rangeSize :: (Femtosecond, Femtosecond) -> Int Source #

unsafeRangeSize :: (Femtosecond, Femtosecond) -> Int Source #

Num Femtosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

(+) :: Femtosecond -> Femtosecond -> Femtosecond Source #

(-) :: Femtosecond -> Femtosecond -> Femtosecond Source #

(*) :: Femtosecond -> Femtosecond -> Femtosecond Source #

negate :: Femtosecond -> Femtosecond Source #

abs :: Femtosecond -> Femtosecond Source #

signum :: Femtosecond -> Femtosecond Source #

fromInteger :: Integer -> Femtosecond Source #

Read Femtosecond Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Femtosecond Source # readList :: ReadS [Femtosecond] Source # readPrec :: ReadPrec Femtosecond Source # readListPrec :: ReadPrec [Femtosecond] Source #
Integral Femtosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

quot :: Femtosecond -> Femtosecond -> Femtosecond Source #

rem :: Femtosecond -> Femtosecond -> Femtosecond Source #

div :: Femtosecond -> Femtosecond -> Femtosecond Source #

mod :: Femtosecond -> Femtosecond -> Femtosecond Source #

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

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

toInteger :: Femtosecond -> Integer Source #

Real Femtosecond Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Femtosecond -> Rational Source #
Show Femtosecond Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Femtosecond -> ShowS Source # show :: Femtosecond -> String Source # showList :: [Femtosecond] -> ShowS Source #
Eq Femtosecond Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Femtosecond -> Femtosecond -> Bool Source # (/=) :: Femtosecond -> Femtosecond -> Bool Source #
Ord Femtosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

compare :: Femtosecond -> Femtosecond -> Ordering Source #

(<) :: Femtosecond -> Femtosecond -> Bool Source #

(<=) :: Femtosecond -> Femtosecond -> Bool Source #

(>) :: Femtosecond -> Femtosecond -> Bool Source #

(>=) :: Femtosecond -> Femtosecond -> Bool Source #

max :: Femtosecond -> Femtosecond -> Femtosecond Source #

min :: Femtosecond -> Femtosecond -> Femtosecond Source #

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

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 Source #

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

toConstr :: Picosecond -> Constr Source #

dataTypeOf :: Picosecond -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Enum Picosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

succ :: Picosecond -> Picosecond Source #

pred :: Picosecond -> Picosecond Source #

toEnum :: Int -> Picosecond Source #

fromEnum :: Picosecond -> Int Source #

enumFrom :: Picosecond -> [Picosecond] Source #

enumFromThen :: Picosecond -> Picosecond -> [Picosecond] Source #

enumFromTo :: Picosecond -> Picosecond -> [Picosecond] Source #

enumFromThenTo :: Picosecond -> Picosecond -> Picosecond -> [Picosecond] Source #

Ix Picosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

range :: (Picosecond, Picosecond) -> [Picosecond] Source #

index :: (Picosecond, Picosecond) -> Picosecond -> Int Source #

unsafeIndex :: (Picosecond, Picosecond) -> Picosecond -> Int Source #

inRange :: (Picosecond, Picosecond) -> Picosecond -> Bool Source #

rangeSize :: (Picosecond, Picosecond) -> Int Source #

unsafeRangeSize :: (Picosecond, Picosecond) -> Int Source #

Num Picosecond Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Picosecond -> Picosecond -> Picosecond Source # (-) :: Picosecond -> Picosecond -> Picosecond Source # (*) :: Picosecond -> Picosecond -> Picosecond Source # negate :: Picosecond -> Picosecond Source # abs :: Picosecond -> Picosecond Source # signum :: Picosecond -> Picosecond Source # fromInteger :: Integer -> Picosecond Source #
Read Picosecond Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Picosecond Source # readList :: ReadS [Picosecond] Source # readPrec :: ReadPrec Picosecond Source # readListPrec :: ReadPrec [Picosecond] Source #
Integral Picosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

quot :: Picosecond -> Picosecond -> Picosecond Source #

rem :: Picosecond -> Picosecond -> Picosecond Source #

div :: Picosecond -> Picosecond -> Picosecond Source #

mod :: Picosecond -> Picosecond -> Picosecond Source #

quotRem :: Picosecond -> Picosecond -> (Picosecond, Picosecond) Source #

divMod :: Picosecond -> Picosecond -> (Picosecond, Picosecond) Source #

toInteger :: Picosecond -> Integer Source #

Real Picosecond Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Picosecond -> Rational Source #
Show Picosecond Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Picosecond -> ShowS Source # show :: Picosecond -> String Source # showList :: [Picosecond] -> ShowS Source #
Eq Picosecond Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Picosecond -> Picosecond -> Bool Source # (/=) :: Picosecond -> Picosecond -> Bool Source #
Ord Picosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

compare :: Picosecond -> Picosecond -> Ordering Source #

(<) :: Picosecond -> Picosecond -> Bool Source #

(<=) :: Picosecond -> Picosecond -> Bool Source #

(>) :: Picosecond -> Picosecond -> Bool Source #

(>=) :: Picosecond -> Picosecond -> Bool Source #

max :: Picosecond -> Picosecond -> Picosecond Source #

min :: Picosecond -> Picosecond -> Picosecond Source #

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

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 Source #

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

toConstr :: Nanosecond -> Constr Source #

dataTypeOf :: Nanosecond -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Enum Nanosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

succ :: Nanosecond -> Nanosecond Source #

pred :: Nanosecond -> Nanosecond Source #

toEnum :: Int -> Nanosecond Source #

fromEnum :: Nanosecond -> Int Source #

enumFrom :: Nanosecond -> [Nanosecond] Source #

enumFromThen :: Nanosecond -> Nanosecond -> [Nanosecond] Source #

enumFromTo :: Nanosecond -> Nanosecond -> [Nanosecond] Source #

enumFromThenTo :: Nanosecond -> Nanosecond -> Nanosecond -> [Nanosecond] Source #

Ix Nanosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

range :: (Nanosecond, Nanosecond) -> [Nanosecond] Source #

index :: (Nanosecond, Nanosecond) -> Nanosecond -> Int Source #

unsafeIndex :: (Nanosecond, Nanosecond) -> Nanosecond -> Int Source #

inRange :: (Nanosecond, Nanosecond) -> Nanosecond -> Bool Source #

rangeSize :: (Nanosecond, Nanosecond) -> Int Source #

unsafeRangeSize :: (Nanosecond, Nanosecond) -> Int Source #

Num Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Nanosecond -> Nanosecond -> Nanosecond Source # (-) :: Nanosecond -> Nanosecond -> Nanosecond Source # (*) :: Nanosecond -> Nanosecond -> Nanosecond Source # negate :: Nanosecond -> Nanosecond Source # abs :: Nanosecond -> Nanosecond Source # signum :: Nanosecond -> Nanosecond Source # fromInteger :: Integer -> Nanosecond Source #
Read Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Nanosecond Source # readList :: ReadS [Nanosecond] Source # readPrec :: ReadPrec Nanosecond Source # readListPrec :: ReadPrec [Nanosecond] Source #
Integral Nanosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

quot :: Nanosecond -> Nanosecond -> Nanosecond Source #

rem :: Nanosecond -> Nanosecond -> Nanosecond Source #

div :: Nanosecond -> Nanosecond -> Nanosecond Source #

mod :: Nanosecond -> Nanosecond -> Nanosecond Source #

quotRem :: Nanosecond -> Nanosecond -> (Nanosecond, Nanosecond) Source #

divMod :: Nanosecond -> Nanosecond -> (Nanosecond, Nanosecond) Source #

toInteger :: Nanosecond -> Integer Source #

Real Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Nanosecond -> Rational Source #
Show Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Nanosecond -> ShowS Source # show :: Nanosecond -> String Source # showList :: [Nanosecond] -> ShowS Source #
Eq Nanosecond Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Nanosecond -> Nanosecond -> Bool Source # (/=) :: Nanosecond -> Nanosecond -> Bool Source #
Ord Nanosecond Source # |

Instance details

Defined in Data.Time.Units

Methods

compare :: Nanosecond -> Nanosecond -> Ordering Source #

(<) :: Nanosecond -> Nanosecond -> Bool Source #

(<=) :: Nanosecond -> Nanosecond -> Bool Source #

(>) :: Nanosecond -> Nanosecond -> Bool Source #

(>=) :: Nanosecond -> Nanosecond -> Bool Source #

max :: Nanosecond -> Nanosecond -> Nanosecond Source #

min :: Nanosecond -> Nanosecond -> Nanosecond Source #

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

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 Source #

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

toConstr :: Microsecond -> Constr Source #

dataTypeOf :: Microsecond -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Enum Microsecond Source # |

Instance details

Defined in Data.Time.Units

Methods

succ :: Microsecond -> Microsecond Source #

pred :: Microsecond -> Microsecond Source #

toEnum :: Int -> Microsecond Source #

fromEnum :: Microsecond -> Int Source #

enumFrom :: Microsecond -> [Microsecond] Source #

enumFromThen :: Microsecond -> Microsecond -> [Microsecond] Source #

enumFromTo :: Microsecond -> Microsecond -> [Microsecond] Source #

enumFromThenTo :: Microsecond -> Microsecond -> Microsecond -> [Microsecond] Source #

Ix Microsecond Source # |

Instance details

Defined in Data.Time.Units

Methods

range :: (Microsecond, Microsecond) -> [Microsecond] Source #

index :: (Microsecond, Microsecond) -> Microsecond -> Int Source #

unsafeIndex :: (Microsecond, Microsecond) -> Microsecond -> Int Source #

inRange :: (Microsecond, Microsecond) -> Microsecond -> Bool Source #

rangeSize :: (Microsecond, Microsecond) -> Int Source #

unsafeRangeSize :: (Microsecond, Microsecond) -> Int Source #

Num Microsecond Source # |

Instance details

Defined in Data.Time.Units

Methods

(+) :: Microsecond -> Microsecond -> Microsecond Source #

(-) :: Microsecond -> Microsecond -> Microsecond Source #

(*) :: Microsecond -> Microsecond -> Microsecond Source #

negate :: Microsecond -> Microsecond Source #

abs :: Microsecond -> Microsecond Source #

signum :: Microsecond -> Microsecond Source #

fromInteger :: Integer -> Microsecond Source #

Read Microsecond Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Microsecond Source # readList :: ReadS [Microsecond] Source # readPrec :: ReadPrec Microsecond Source # readListPrec :: ReadPrec [Microsecond] Source #
Integral Microsecond Source # |

Instance details

Defined in Data.Time.Units

Methods

quot :: Microsecond -> Microsecond -> Microsecond Source #

rem :: Microsecond -> Microsecond -> Microsecond Source #

div :: Microsecond -> Microsecond -> Microsecond Source #

mod :: Microsecond -> Microsecond -> Microsecond Source #

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

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

toInteger :: Microsecond -> Integer Source #

Real Microsecond Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Microsecond -> Rational Source #
Show Microsecond Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Microsecond -> ShowS Source # show :: Microsecond -> String Source # showList :: [Microsecond] -> ShowS Source #
Eq Microsecond Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Microsecond -> Microsecond -> Bool Source # (/=) :: Microsecond -> Microsecond -> Bool Source #
Ord Microsecond Source # |

Instance details

Defined in Data.Time.Units

Methods

compare :: Microsecond -> Microsecond -> Ordering Source #

(<) :: Microsecond -> Microsecond -> Bool Source #

(<=) :: Microsecond -> Microsecond -> Bool Source #

(>) :: Microsecond -> Microsecond -> Bool Source #

(>=) :: Microsecond -> Microsecond -> Bool Source #

max :: Microsecond -> Microsecond -> Microsecond Source #

min :: Microsecond -> Microsecond -> Microsecond Source #

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

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 Source #

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

toConstr :: Millisecond -> Constr Source #

dataTypeOf :: Millisecond -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Enum Millisecond Source # |

Instance details

Defined in Data.Time.Units

Methods

succ :: Millisecond -> Millisecond Source #

pred :: Millisecond -> Millisecond Source #

toEnum :: Int -> Millisecond Source #

fromEnum :: Millisecond -> Int Source #

enumFrom :: Millisecond -> [Millisecond] Source #

enumFromThen :: Millisecond -> Millisecond -> [Millisecond] Source #

enumFromTo :: Millisecond -> Millisecond -> [Millisecond] Source #

enumFromThenTo :: Millisecond -> Millisecond -> Millisecond -> [Millisecond] Source #

Ix Millisecond Source # |

Instance details

Defined in Data.Time.Units

Methods

range :: (Millisecond, Millisecond) -> [Millisecond] Source #

index :: (Millisecond, Millisecond) -> Millisecond -> Int Source #

unsafeIndex :: (Millisecond, Millisecond) -> Millisecond -> Int Source #

inRange :: (Millisecond, Millisecond) -> Millisecond -> Bool Source #

rangeSize :: (Millisecond, Millisecond) -> Int Source #

unsafeRangeSize :: (Millisecond, Millisecond) -> Int Source #

Num Millisecond Source # |

Instance details

Defined in Data.Time.Units

Methods

(+) :: Millisecond -> Millisecond -> Millisecond Source #

(-) :: Millisecond -> Millisecond -> Millisecond Source #

(*) :: Millisecond -> Millisecond -> Millisecond Source #

negate :: Millisecond -> Millisecond Source #

abs :: Millisecond -> Millisecond Source #

signum :: Millisecond -> Millisecond Source #

fromInteger :: Integer -> Millisecond Source #

Read Millisecond Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Millisecond Source # readList :: ReadS [Millisecond] Source # readPrec :: ReadPrec Millisecond Source # readListPrec :: ReadPrec [Millisecond] Source #
Integral Millisecond Source # |

Instance details

Defined in Data.Time.Units

Methods

quot :: Millisecond -> Millisecond -> Millisecond Source #

rem :: Millisecond -> Millisecond -> Millisecond Source #

div :: Millisecond -> Millisecond -> Millisecond Source #

mod :: Millisecond -> Millisecond -> Millisecond Source #

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

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

toInteger :: Millisecond -> Integer Source #

Real Millisecond Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Millisecond -> Rational Source #
Show Millisecond Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Millisecond -> ShowS Source # show :: Millisecond -> String Source # showList :: [Millisecond] -> ShowS Source #
Eq Millisecond Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Millisecond -> Millisecond -> Bool Source # (/=) :: Millisecond -> Millisecond -> Bool Source #
Ord Millisecond Source # |

Instance details

Defined in Data.Time.Units

Methods

compare :: Millisecond -> Millisecond -> Ordering Source #

(<) :: Millisecond -> Millisecond -> Bool Source #

(<=) :: Millisecond -> Millisecond -> Bool Source #

(>) :: Millisecond -> Millisecond -> Bool Source #

(>=) :: Millisecond -> Millisecond -> Bool Source #

max :: Millisecond -> Millisecond -> Millisecond Source #

min :: Millisecond -> Millisecond -> Millisecond Source #

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

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 Source #

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

toConstr :: Second -> Constr Source #

dataTypeOf :: Second -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Enum Second Source # |
Instance details Defined in Data.Time.Units Methods succ :: Second -> Second Source # pred :: Second -> Second Source # toEnum :: Int -> Second Source # fromEnum :: Second -> Int Source # enumFrom :: Second -> [Second] Source # enumFromThen :: Second -> Second -> [Second] Source # enumFromTo :: Second -> Second -> [Second] Source # enumFromThenTo :: Second -> Second -> Second -> [Second] Source #
Ix Second Source # |
Instance details Defined in Data.Time.Units Methods range :: (Second, Second) -> [Second] Source # index :: (Second, Second) -> Second -> Int Source # unsafeIndex :: (Second, Second) -> Second -> Int Source # inRange :: (Second, Second) -> Second -> Bool Source # rangeSize :: (Second, Second) -> Int Source # unsafeRangeSize :: (Second, Second) -> Int Source #
Num Second Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Second -> Second -> Second Source # (-) :: Second -> Second -> Second Source # (*) :: Second -> Second -> Second Source # negate :: Second -> Second Source # abs :: Second -> Second Source # signum :: Second -> Second Source # fromInteger :: Integer -> Second Source #
Read Second Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Second Source # readList :: ReadS [Second] Source # readPrec :: ReadPrec Second Source # readListPrec :: ReadPrec [Second] Source #
Integral Second Source # |
Instance details Defined in Data.Time.Units Methods quot :: Second -> Second -> Second Source # rem :: Second -> Second -> Second Source # div :: Second -> Second -> Second Source # mod :: Second -> Second -> Second Source # quotRem :: Second -> Second -> (Second, Second) Source # divMod :: Second -> Second -> (Second, Second) Source # toInteger :: Second -> Integer Source #
Real Second Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Second -> Rational Source #
Show Second Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Second -> ShowS Source # show :: Second -> String Source # showList :: [Second] -> ShowS Source #
Eq Second Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Second -> Second -> Bool Source # (/=) :: Second -> Second -> Bool Source #
Ord Second Source # |
Instance details Defined in Data.Time.Units Methods compare :: Second -> Second -> Ordering Source # (<) :: Second -> Second -> Bool Source # (<=) :: Second -> Second -> Bool Source # (>) :: Second -> Second -> Bool Source # (>=) :: Second -> Second -> Bool Source # max :: Second -> Second -> Second Source # min :: Second -> Second -> Second Source #
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

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 Source #

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

toConstr :: Minute -> Constr Source #

dataTypeOf :: Minute -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Enum Minute Source # |
Instance details Defined in Data.Time.Units Methods succ :: Minute -> Minute Source # pred :: Minute -> Minute Source # toEnum :: Int -> Minute Source # fromEnum :: Minute -> Int Source # enumFrom :: Minute -> [Minute] Source # enumFromThen :: Minute -> Minute -> [Minute] Source # enumFromTo :: Minute -> Minute -> [Minute] Source # enumFromThenTo :: Minute -> Minute -> Minute -> [Minute] Source #
Ix Minute Source # |
Instance details Defined in Data.Time.Units Methods range :: (Minute, Minute) -> [Minute] Source # index :: (Minute, Minute) -> Minute -> Int Source # unsafeIndex :: (Minute, Minute) -> Minute -> Int Source # inRange :: (Minute, Minute) -> Minute -> Bool Source # rangeSize :: (Minute, Minute) -> Int Source # unsafeRangeSize :: (Minute, Minute) -> Int Source #
Num Minute Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Minute -> Minute -> Minute Source # (-) :: Minute -> Minute -> Minute Source # (*) :: Minute -> Minute -> Minute Source # negate :: Minute -> Minute Source # abs :: Minute -> Minute Source # signum :: Minute -> Minute Source # fromInteger :: Integer -> Minute Source #
Read Minute Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Minute Source # readList :: ReadS [Minute] Source # readPrec :: ReadPrec Minute Source # readListPrec :: ReadPrec [Minute] Source #
Integral Minute Source # |
Instance details Defined in Data.Time.Units Methods quot :: Minute -> Minute -> Minute Source # rem :: Minute -> Minute -> Minute Source # div :: Minute -> Minute -> Minute Source # mod :: Minute -> Minute -> Minute Source # quotRem :: Minute -> Minute -> (Minute, Minute) Source # divMod :: Minute -> Minute -> (Minute, Minute) Source # toInteger :: Minute -> Integer Source #
Real Minute Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Minute -> Rational Source #
Show Minute Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Minute -> ShowS Source # show :: Minute -> String Source # showList :: [Minute] -> ShowS Source #
Eq Minute Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Minute -> Minute -> Bool Source # (/=) :: Minute -> Minute -> Bool Source #
Ord Minute Source # |
Instance details Defined in Data.Time.Units Methods compare :: Minute -> Minute -> Ordering Source # (<) :: Minute -> Minute -> Bool Source # (<=) :: Minute -> Minute -> Bool Source # (>) :: Minute -> Minute -> Bool Source # (>=) :: Minute -> Minute -> Bool Source # max :: Minute -> Minute -> Minute Source # min :: Minute -> Minute -> Minute Source #
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

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 Source #

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

toConstr :: Hour -> Constr Source #

dataTypeOf :: Hour -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Enum Hour Source # |
Instance details Defined in Data.Time.Units Methods succ :: Hour -> Hour Source # pred :: Hour -> Hour Source # toEnum :: Int -> Hour Source # fromEnum :: Hour -> Int Source # enumFrom :: Hour -> [Hour] Source # enumFromThen :: Hour -> Hour -> [Hour] Source # enumFromTo :: Hour -> Hour -> [Hour] Source # enumFromThenTo :: Hour -> Hour -> Hour -> [Hour] Source #
Ix Hour Source # |
Instance details Defined in Data.Time.Units Methods range :: (Hour, Hour) -> [Hour] Source # index :: (Hour, Hour) -> Hour -> Int Source # unsafeIndex :: (Hour, Hour) -> Hour -> Int Source # inRange :: (Hour, Hour) -> Hour -> Bool Source # rangeSize :: (Hour, Hour) -> Int Source # unsafeRangeSize :: (Hour, Hour) -> Int Source #
Num Hour Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Hour -> Hour -> Hour Source # (-) :: Hour -> Hour -> Hour Source # (*) :: Hour -> Hour -> Hour Source # negate :: Hour -> Hour Source # abs :: Hour -> Hour Source # signum :: Hour -> Hour Source # fromInteger :: Integer -> Hour Source #
Read Hour Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Hour Source # readList :: ReadS [Hour] Source # readPrec :: ReadPrec Hour Source # readListPrec :: ReadPrec [Hour] Source #
Integral Hour Source # |
Instance details Defined in Data.Time.Units Methods quot :: Hour -> Hour -> Hour Source # rem :: Hour -> Hour -> Hour Source # div :: Hour -> Hour -> Hour Source # mod :: Hour -> Hour -> Hour Source # quotRem :: Hour -> Hour -> (Hour, Hour) Source # divMod :: Hour -> Hour -> (Hour, Hour) Source # toInteger :: Hour -> Integer Source #
Real Hour Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Hour -> Rational Source #
Show Hour Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Hour -> ShowS Source # show :: Hour -> String Source # showList :: [Hour] -> ShowS Source #
Eq Hour Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Hour -> Hour -> Bool Source # (/=) :: Hour -> Hour -> Bool Source #
Ord Hour Source # |
Instance details Defined in Data.Time.Units Methods compare :: Hour -> Hour -> Ordering Source # (<) :: Hour -> Hour -> Bool Source # (<=) :: Hour -> Hour -> Bool Source # (>) :: Hour -> Hour -> Bool Source # (>=) :: Hour -> Hour -> Bool Source # max :: Hour -> Hour -> Hour Source # min :: Hour -> Hour -> Hour Source #
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

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 Source #

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

toConstr :: Day -> Constr Source #

dataTypeOf :: Day -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Enum Day Source # |
Instance details Defined in Data.Time.Units Methods succ :: Day -> Day Source # pred :: Day -> Day Source # toEnum :: Int -> Day Source # fromEnum :: Day -> Int Source # enumFrom :: Day -> [Day] Source # enumFromThen :: Day -> Day -> [Day] Source # enumFromTo :: Day -> Day -> [Day] Source # enumFromThenTo :: Day -> Day -> Day -> [Day] Source #
Ix Day Source # |
Instance details Defined in Data.Time.Units Methods range :: (Day, Day) -> [Day] Source # index :: (Day, Day) -> Day -> Int Source # unsafeIndex :: (Day, Day) -> Day -> Int Source # inRange :: (Day, Day) -> Day -> Bool Source # rangeSize :: (Day, Day) -> Int Source # unsafeRangeSize :: (Day, Day) -> Int Source #
Num Day Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Day -> Day -> Day Source # (-) :: Day -> Day -> Day Source # (*) :: Day -> Day -> Day Source # negate :: Day -> Day Source # abs :: Day -> Day Source # signum :: Day -> Day Source # fromInteger :: Integer -> Day Source #
Read Day Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Day Source # readList :: ReadS [Day] Source # readPrec :: ReadPrec Day Source # readListPrec :: ReadPrec [Day] Source #
Integral Day Source # |
Instance details Defined in Data.Time.Units Methods quot :: Day -> Day -> Day Source # rem :: Day -> Day -> Day Source # div :: Day -> Day -> Day Source # mod :: Day -> Day -> Day Source # quotRem :: Day -> Day -> (Day, Day) Source # divMod :: Day -> Day -> (Day, Day) Source # toInteger :: Day -> Integer Source #
Real Day Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Day -> Rational Source #
Show Day Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Day -> ShowS Source # show :: Day -> String Source # showList :: [Day] -> ShowS Source #
Eq Day Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Day -> Day -> Bool Source # (/=) :: Day -> Day -> Bool Source #
Ord Day Source # |
Instance details Defined in Data.Time.Units Methods compare :: Day -> Day -> Ordering Source # (<) :: Day -> Day -> Bool Source # (<=) :: Day -> Day -> Bool Source # (>) :: Day -> Day -> Bool Source # (>=) :: Day -> Day -> Bool Source # max :: Day -> Day -> Day Source # min :: Day -> Day -> Day Source #
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

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 Source #

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

toConstr :: Week -> Constr Source #

dataTypeOf :: Week -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Enum Week Source # |
Instance details Defined in Data.Time.Units Methods succ :: Week -> Week Source # pred :: Week -> Week Source # toEnum :: Int -> Week Source # fromEnum :: Week -> Int Source # enumFrom :: Week -> [Week] Source # enumFromThen :: Week -> Week -> [Week] Source # enumFromTo :: Week -> Week -> [Week] Source # enumFromThenTo :: Week -> Week -> Week -> [Week] Source #
Ix Week Source # |
Instance details Defined in Data.Time.Units Methods range :: (Week, Week) -> [Week] Source # index :: (Week, Week) -> Week -> Int Source # unsafeIndex :: (Week, Week) -> Week -> Int Source # inRange :: (Week, Week) -> Week -> Bool Source # rangeSize :: (Week, Week) -> Int Source # unsafeRangeSize :: (Week, Week) -> Int Source #
Num Week Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Week -> Week -> Week Source # (-) :: Week -> Week -> Week Source # (*) :: Week -> Week -> Week Source # negate :: Week -> Week Source # abs :: Week -> Week Source # signum :: Week -> Week Source # fromInteger :: Integer -> Week Source #
Read Week Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Week Source # readList :: ReadS [Week] Source # readPrec :: ReadPrec Week Source # readListPrec :: ReadPrec [Week] Source #
Integral Week Source # |
Instance details Defined in Data.Time.Units Methods quot :: Week -> Week -> Week Source # rem :: Week -> Week -> Week Source # div :: Week -> Week -> Week Source # mod :: Week -> Week -> Week Source # quotRem :: Week -> Week -> (Week, Week) Source # divMod :: Week -> Week -> (Week, Week) Source # toInteger :: Week -> Integer Source #
Real Week Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Week -> Rational Source #
Show Week Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Week -> ShowS Source # show :: Week -> String Source # showList :: [Week] -> ShowS Source #
Eq Week Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Week -> Week -> Bool Source # (/=) :: Week -> Week -> Bool Source #
Ord Week Source # |
Instance details Defined in Data.Time.Units Methods compare :: Week -> Week -> Ordering Source # (<) :: Week -> Week -> Bool Source # (<=) :: Week -> Week -> Bool Source # (>) :: Week -> Week -> Bool Source # (>=) :: Week -> Week -> Bool Source # max :: Week -> Week -> Week Source # min :: Week -> Week -> Week Source #
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

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 Source #

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

toConstr :: Fortnight -> Constr Source #

dataTypeOf :: Fortnight -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Enum Fortnight Source # |

Instance details

Defined in Data.Time.Units

Methods

succ :: Fortnight -> Fortnight Source #

pred :: Fortnight -> Fortnight Source #

toEnum :: Int -> Fortnight Source #

fromEnum :: Fortnight -> Int Source #

enumFrom :: Fortnight -> [Fortnight] Source #

enumFromThen :: Fortnight -> Fortnight -> [Fortnight] Source #

enumFromTo :: Fortnight -> Fortnight -> [Fortnight] Source #

enumFromThenTo :: Fortnight -> Fortnight -> Fortnight -> [Fortnight] Source #

Ix Fortnight Source # |

Instance details

Defined in Data.Time.Units

Methods

range :: (Fortnight, Fortnight) -> [Fortnight] Source #

index :: (Fortnight, Fortnight) -> Fortnight -> Int Source #

unsafeIndex :: (Fortnight, Fortnight) -> Fortnight -> Int Source #

inRange :: (Fortnight, Fortnight) -> Fortnight -> Bool Source #

rangeSize :: (Fortnight, Fortnight) -> Int Source #

unsafeRangeSize :: (Fortnight, Fortnight) -> Int Source #

Num Fortnight Source # |
Instance details Defined in Data.Time.Units Methods (+) :: Fortnight -> Fortnight -> Fortnight Source # (-) :: Fortnight -> Fortnight -> Fortnight Source # (*) :: Fortnight -> Fortnight -> Fortnight Source # negate :: Fortnight -> Fortnight Source # abs :: Fortnight -> Fortnight Source # signum :: Fortnight -> Fortnight Source # fromInteger :: Integer -> Fortnight Source #
Read Fortnight Source # |
Instance details Defined in Data.Time.Units Methods readsPrec :: Int -> ReadS Fortnight Source # readList :: ReadS [Fortnight] Source # readPrec :: ReadPrec Fortnight Source # readListPrec :: ReadPrec [Fortnight] Source #
Integral Fortnight Source # |

Instance details

Defined in Data.Time.Units

Methods

quot :: Fortnight -> Fortnight -> Fortnight Source #

rem :: Fortnight -> Fortnight -> Fortnight Source #

div :: Fortnight -> Fortnight -> Fortnight Source #

mod :: Fortnight -> Fortnight -> Fortnight Source #

quotRem :: Fortnight -> Fortnight -> (Fortnight, Fortnight) Source #

divMod :: Fortnight -> Fortnight -> (Fortnight, Fortnight) Source #

toInteger :: Fortnight -> Integer Source #

Real Fortnight Source # |
Instance details Defined in Data.Time.Units Methods toRational :: Fortnight -> Rational Source #
Show Fortnight Source # |
Instance details Defined in Data.Time.Units Methods showsPrec :: Int -> Fortnight -> ShowS Source # show :: Fortnight -> String Source # showList :: [Fortnight] -> ShowS Source #
Eq Fortnight Source # |
Instance details Defined in Data.Time.Units Methods (==) :: Fortnight -> Fortnight -> Bool Source # (/=) :: Fortnight -> Fortnight -> Bool Source #
Ord Fortnight Source # |
Instance details Defined in Data.Time.Units Methods compare :: Fortnight -> Fortnight -> Ordering Source # (<) :: Fortnight -> Fortnight -> Bool Source # (<=) :: Fortnight -> Fortnight -> Bool Source # (>) :: Fortnight -> Fortnight -> Bool Source # (>=) :: Fortnight -> Fortnight -> Bool Source # max :: Fortnight -> Fortnight -> Fortnight Source # min :: Fortnight -> Fortnight -> Fortnight Source #
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 ...