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

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

TimeUnit Week Source #
Instance details

Defined in Data.Time.Units

TimeUnit Day Source #
Instance details

Defined in Data.Time.Units

TimeUnit Hour Source #
Instance details

Defined in Data.Time.Units

TimeUnit Minute Source #
Instance details

Defined in Data.Time.Units

TimeUnit Second Source #
Instance details

Defined in Data.Time.Units

TimeUnit Millisecond Source #
Instance details

Defined in Data.Time.Units

TimeUnit Microsecond Source #
Instance details

Defined in Data.Time.Units

TimeUnit Nanosecond Source #
Instance details

Defined in Data.Time.Units

TimeUnit Picosecond Source #
Instance details

Defined in Data.Time.Units

TimeUnit Femtosecond Source #
Instance details

Defined in Data.Time.Units

TimeUnit Attosecond Source #
Instance details

Defined in Data.Time.Units

data Attosecond Source #

Instances

Instances details
Enum Attosecond Source #
Instance details

Defined in Data.Time.Units

Eq Attosecond Source #
Instance details

Defined in Data.Time.Units

Integral Attosecond Source #
Instance details

Defined in Data.Time.Units

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 #

Num Attosecond Source #
Instance details

Defined in Data.Time.Units

Ord Attosecond Source #
Instance details

Defined in Data.Time.Units

Read Attosecond Source #
Instance details

Defined in Data.Time.Units

Real Attosecond Source #
Instance details

Defined in Data.Time.Units

Show Attosecond Source #
Instance details

Defined in Data.Time.Units

Ix Attosecond Source #
Instance details

Defined in Data.Time.Units

TimeUnit Attosecond Source #
Instance details

Defined in Data.Time.Units

data Femtosecond Source #

Instances

Instances details
Enum Femtosecond Source #
Instance details

Defined in Data.Time.Units

Eq Femtosecond Source #
Instance details

Defined in Data.Time.Units

Integral Femtosecond Source #
Instance details

Defined in Data.Time.Units

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 #

Num Femtosecond Source #
Instance details

Defined in Data.Time.Units

Ord Femtosecond Source #
Instance details

Defined in Data.Time.Units

Read Femtosecond Source #
Instance details

Defined in Data.Time.Units

Real Femtosecond Source #
Instance details

Defined in Data.Time.Units

Show Femtosecond Source #
Instance details

Defined in Data.Time.Units

Ix Femtosecond Source #
Instance details

Defined in Data.Time.Units

TimeUnit Femtosecond Source #
Instance details

Defined in Data.Time.Units

data Picosecond Source #

Instances

Instances details
Enum Picosecond Source #
Instance details

Defined in Data.Time.Units

Eq Picosecond Source #
Instance details

Defined in Data.Time.Units

Integral Picosecond Source #
Instance details

Defined in Data.Time.Units

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 #

Num Picosecond Source #
Instance details

Defined in Data.Time.Units

Ord Picosecond Source #
Instance details

Defined in Data.Time.Units

Read Picosecond Source #
Instance details

Defined in Data.Time.Units

Real Picosecond Source #
Instance details

Defined in Data.Time.Units

Show Picosecond Source #
Instance details

Defined in Data.Time.Units

Ix Picosecond Source #
Instance details

Defined in Data.Time.Units

TimeUnit Picosecond Source #
Instance details

Defined in Data.Time.Units

data Nanosecond Source #

Instances

Instances details
Enum Nanosecond Source #
Instance details

Defined in Data.Time.Units

Eq Nanosecond Source #
Instance details

Defined in Data.Time.Units

Integral Nanosecond Source #
Instance details

Defined in Data.Time.Units

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 #

Num Nanosecond Source #
Instance details

Defined in Data.Time.Units

Ord Nanosecond Source #
Instance details

Defined in Data.Time.Units

Read Nanosecond Source #
Instance details

Defined in Data.Time.Units

Real Nanosecond Source #
Instance details

Defined in Data.Time.Units

Show Nanosecond Source #
Instance details

Defined in Data.Time.Units

Ix Nanosecond Source #
Instance details

Defined in Data.Time.Units

TimeUnit Nanosecond Source #
Instance details

Defined in Data.Time.Units

data Microsecond Source #

Instances

Instances details
Enum Microsecond Source #
Instance details

Defined in Data.Time.Units

Eq Microsecond Source #
Instance details

Defined in Data.Time.Units

Integral Microsecond Source #
Instance details

Defined in Data.Time.Units

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 #

Num Microsecond Source #
Instance details

Defined in Data.Time.Units

Ord Microsecond Source #
Instance details

Defined in Data.Time.Units

Read Microsecond Source #
Instance details

Defined in Data.Time.Units

Real Microsecond Source #
Instance details

Defined in Data.Time.Units

Show Microsecond Source #
Instance details

Defined in Data.Time.Units

Ix Microsecond Source #
Instance details

Defined in Data.Time.Units

TimeUnit Microsecond Source #
Instance details

Defined in Data.Time.Units

data Millisecond Source #

Instances

Instances details
Enum Millisecond Source #
Instance details

Defined in Data.Time.Units

Eq Millisecond Source #
Instance details

Defined in Data.Time.Units

Integral Millisecond Source #
Instance details

Defined in Data.Time.Units

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 #

Num Millisecond Source #
Instance details

Defined in Data.Time.Units

Ord Millisecond Source #
Instance details

Defined in Data.Time.Units

Read Millisecond Source #
Instance details

Defined in Data.Time.Units

Real Millisecond Source #
Instance details

Defined in Data.Time.Units

Show Millisecond Source #
Instance details

Defined in Data.Time.Units

Ix Millisecond Source #
Instance details

Defined in Data.Time.Units

TimeUnit Millisecond Source #
Instance details

Defined in Data.Time.Units

data Second Source #

Instances

Instances details
Enum Second Source #
Instance details

Defined in Data.Time.Units

Eq Second Source #
Instance details

Defined in Data.Time.Units

Integral Second Source #
Instance details

Defined in Data.Time.Units

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 #

Num Second Source #
Instance details

Defined in Data.Time.Units

Ord Second Source #
Instance details

Defined in Data.Time.Units

Read Second Source #
Instance details

Defined in Data.Time.Units

Real Second Source #
Instance details

Defined in Data.Time.Units

Show Second Source #
Instance details

Defined in Data.Time.Units

Ix Second Source #
Instance details

Defined in Data.Time.Units

TimeUnit Second Source #
Instance details

Defined in Data.Time.Units

data Minute Source #

Instances

Instances details
Enum Minute Source #
Instance details

Defined in Data.Time.Units

Eq Minute Source #
Instance details

Defined in Data.Time.Units

Integral Minute Source #
Instance details

Defined in Data.Time.Units

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 #

Num Minute Source #
Instance details

Defined in Data.Time.Units

Ord Minute Source #
Instance details

Defined in Data.Time.Units

Read Minute Source #
Instance details

Defined in Data.Time.Units

Real Minute Source #
Instance details

Defined in Data.Time.Units

Show Minute Source #
Instance details

Defined in Data.Time.Units

Ix Minute Source #
Instance details

Defined in Data.Time.Units

TimeUnit Minute Source #
Instance details

Defined in Data.Time.Units

data Hour Source #

Instances

Instances details
Enum Hour Source #
Instance details

Defined in Data.Time.Units

Eq Hour Source #
Instance details

Defined in Data.Time.Units

Integral Hour Source #
Instance details

Defined in Data.Time.Units

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 #

Num Hour Source #
Instance details

Defined in Data.Time.Units

Ord Hour Source #
Instance details

Defined in Data.Time.Units

Read Hour Source #
Instance details

Defined in Data.Time.Units

Real Hour Source #
Instance details

Defined in Data.Time.Units

Show Hour Source #
Instance details

Defined in Data.Time.Units

Ix Hour Source #
Instance details

Defined in Data.Time.Units

TimeUnit Hour Source #
Instance details

Defined in Data.Time.Units

data Day Source #

Instances

Instances details
Enum Day Source #
Instance details

Defined in Data.Time.Units

Eq Day Source #
Instance details

Defined in Data.Time.Units

Integral Day Source #
Instance details

Defined in Data.Time.Units

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 #

Num Day Source #
Instance details

Defined in Data.Time.Units

Ord Day Source #
Instance details

Defined in Data.Time.Units

Read Day Source #
Instance details

Defined in Data.Time.Units

Real Day Source #
Instance details

Defined in Data.Time.Units

Show Day Source #
Instance details

Defined in Data.Time.Units

Ix Day Source #
Instance details

Defined in Data.Time.Units

TimeUnit Day Source #
Instance details

Defined in Data.Time.Units

data Week Source #

Instances

Instances details
Enum Week Source #
Instance details

Defined in Data.Time.Units

Eq Week Source #
Instance details

Defined in Data.Time.Units

Integral Week Source #
Instance details

Defined in Data.Time.Units

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 #

Num Week Source #
Instance details

Defined in Data.Time.Units

Ord Week Source #
Instance details

Defined in Data.Time.Units

Read Week Source #
Instance details

Defined in Data.Time.Units

Real Week Source #
Instance details

Defined in Data.Time.Units

Show Week Source #
Instance details

Defined in Data.Time.Units

Ix Week Source #
Instance details

Defined in Data.Time.Units

TimeUnit Week Source #
Instance details

Defined in Data.Time.Units

data Fortnight Source #

Instances

Instances details
Enum Fortnight Source #
Instance details

Defined in Data.Time.Units

Eq Fortnight Source #
Instance details

Defined in Data.Time.Units

Integral Fortnight Source #
Instance details

Defined in Data.Time.Units

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 #

Num Fortnight Source #
Instance details

Defined in Data.Time.Units

Ord Fortnight Source #
Instance details

Defined in Data.Time.Units

Read Fortnight Source #
Instance details

Defined in Data.Time.Units

Real Fortnight Source #
Instance details

Defined in Data.Time.Units

Show Fortnight Source #
Instance details

Defined in Data.Time.Units

Ix Fortnight Source #
Instance details

Defined in Data.Time.Units

TimeUnit Fortnight Source #
Instance details

Defined in Data.Time.Units

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 ...