hourglass-0.2.12: simple performant time related library

License | BSD-style
Maintainer | Vincent Hanquez <vincent@snarc.org>
Safe Haskell | None
Language | Haskell2010

Time.Types

Contents

- Time units
- Time enumeration
- Timezone
- Computer friendly format
  - Unix elapsed
- Human friendly format
  - Calendar time

Description

Basic times units and types.

While pratically some units could hold infinite values, for practical and efficient purpose they are limited to int64 types for seconds and int types for years.

Most units use the unix epoch referential, but by no means reduce portability. the unix referential works under the Windows platform or any other platforms.

Synopsis

- newtype NanoSeconds = NanoSeconds Int64
- newtype Seconds = Seconds Int64
- newtype Minutes = Minutes Int64
- newtype Hours = Hours Int64
- class TimeInterval i where
  - toSeconds :: i -> Seconds
  - fromSeconds :: Seconds -> (i, Seconds)
- data Month
  - = January
  - | February
  - | March
  - | April
  - | May
  - | June
  - | July
  - | August
  - | September
  - | October
  - | November
  - | December
- data WeekDay
  - = Sunday
  - | Monday
  - | Tuesday
  - | Wednesday
  - | Thursday
  - | Friday
  - | Saturday
- newtype TimezoneOffset = TimezoneOffset {
  - timezoneOffsetToMinutes :: Int
  }
- timezoneOffsetToSeconds :: TimezoneOffset -> Seconds
- timezone_UTC :: TimezoneOffset
- newtype Elapsed = Elapsed Seconds
- data ElapsedP = ElapsedP !Elapsed !NanoSeconds
- data Date = Date {
  - dateYear :: !Int
  - dateMonth :: !Month
  - dateDay :: !Int
  }
- data TimeOfDay = TimeOfDay {
  - todHour :: !Hours
  - todMin :: !Minutes
  - todSec :: !Seconds
  - todNSec :: !NanoSeconds
  }
- data DateTime = DateTime {
  - dtDate :: Date
  - dtTime :: TimeOfDay
  }

# Time units

newtype NanoSeconds Source #

Nanoseconds

Constructors

NanoSeconds Int64 |

#### Instances

Instances details

NFData NanoSeconds Source # |
Instance details Defined in Time.Types Methods rnf :: NanoSeconds -> () Source #
Data NanoSeconds Source # |

Instance details

Defined in Time.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> NanoSeconds -> c NanoSeconds Source #

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

toConstr :: NanoSeconds -> Constr Source #

dataTypeOf :: NanoSeconds -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Num NanoSeconds Source # |

Instance details

Defined in Time.Types

Methods

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

(-) :: NanoSeconds -> NanoSeconds -> NanoSeconds Source #

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

negate :: NanoSeconds -> NanoSeconds Source #

abs :: NanoSeconds -> NanoSeconds Source #

signum :: NanoSeconds -> NanoSeconds Source #

fromInteger :: Integer -> NanoSeconds Source #

Read NanoSeconds Source # |
Instance details Defined in Time.Types Methods readsPrec :: Int -> ReadS NanoSeconds Source # readList :: ReadS [NanoSeconds] Source # readPrec :: ReadPrec NanoSeconds Source # readListPrec :: ReadPrec [NanoSeconds] Source #
Show NanoSeconds Source # |
Instance details Defined in Time.Types Methods showsPrec :: Int -> NanoSeconds -> ShowS Source # show :: NanoSeconds -> String Source # showList :: [NanoSeconds] -> ShowS Source #
Eq NanoSeconds Source # |
Instance details Defined in Time.Types Methods (==) :: NanoSeconds -> NanoSeconds -> Bool Source # (/=) :: NanoSeconds -> NanoSeconds -> Bool Source #
Ord NanoSeconds Source # |

Instance details

Defined in Time.Types

Methods

compare :: NanoSeconds -> NanoSeconds -> Ordering Source #

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

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

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

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

max :: NanoSeconds -> NanoSeconds -> NanoSeconds Source #

min :: NanoSeconds -> NanoSeconds -> NanoSeconds Source #

TimeInterval NanoSeconds Source # |
Instance details Defined in Time.Types Methods toSeconds :: NanoSeconds -> Seconds Source # fromSeconds :: Seconds -> (NanoSeconds, Seconds) Source #

newtype Seconds Source #

Number of seconds without a referential.

Can hold a number between [-2^63,2^63-1], which should be good for some billions of years.

However, because of limitation in the calendar conversion currently used, seconds should be in the range [-2^55,2^55-1], which is good for only 1 billion of year.

Constructors

Seconds Int64 |

#### Instances

Instances details

NFData Seconds Source # |
Instance details Defined in Time.Types Methods rnf :: Seconds -> () Source #
Data Seconds Source # |

Instance details

Defined in Time.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Seconds -> c Seconds Source #

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

toConstr :: Seconds -> Constr Source #

dataTypeOf :: Seconds -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Enum Seconds Source # |

Instance details

Defined in Time.Types

Methods

succ :: Seconds -> Seconds Source #

pred :: Seconds -> Seconds Source #

toEnum :: Int -> Seconds Source #

fromEnum :: Seconds -> Int Source #

enumFrom :: Seconds -> [Seconds] Source #

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

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

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

Num Seconds Source # |
Instance details Defined in Time.Types Methods (+) :: Seconds -> Seconds -> Seconds Source # (-) :: Seconds -> Seconds -> Seconds Source # (*) :: Seconds -> Seconds -> Seconds Source # negate :: Seconds -> Seconds Source # abs :: Seconds -> Seconds Source # signum :: Seconds -> Seconds Source # fromInteger :: Integer -> Seconds Source #
Read Seconds Source # |
Instance details Defined in Time.Types Methods readsPrec :: Int -> ReadS Seconds Source # readList :: ReadS [Seconds] Source # readPrec :: ReadPrec Seconds Source # readListPrec :: ReadPrec [Seconds] Source #
Integral Seconds Source # |
Instance details Defined in Time.Types Methods quot :: Seconds -> Seconds -> Seconds Source # rem :: Seconds -> Seconds -> Seconds Source # div :: Seconds -> Seconds -> Seconds Source # mod :: Seconds -> Seconds -> Seconds Source # quotRem :: Seconds -> Seconds -> (Seconds, Seconds) Source # divMod :: Seconds -> Seconds -> (Seconds, Seconds) Source # toInteger :: Seconds -> Integer Source #
Real Seconds Source # |
Instance details Defined in Time.Types Methods toRational :: Seconds -> Rational Source #
Show Seconds Source # |
Instance details Defined in Time.Types Methods showsPrec :: Int -> Seconds -> ShowS Source # show :: Seconds -> String Source # showList :: [Seconds] -> ShowS Source #
Eq Seconds Source # |
Instance details Defined in Time.Types Methods (==) :: Seconds -> Seconds -> Bool Source # (/=) :: Seconds -> Seconds -> Bool Source #
Ord Seconds Source # |
Instance details Defined in Time.Types Methods compare :: Seconds -> Seconds -> Ordering Source # (<) :: Seconds -> Seconds -> Bool Source # (<=) :: Seconds -> Seconds -> Bool Source # (>) :: Seconds -> Seconds -> Bool Source # (>=) :: Seconds -> Seconds -> Bool Source # max :: Seconds -> Seconds -> Seconds Source # min :: Seconds -> Seconds -> Seconds Source #
TimeInterval Seconds Source # |
Instance details Defined in Time.Types Methods toSeconds :: Seconds -> Seconds Source # fromSeconds :: Seconds -> (Seconds, Seconds) Source #

newtype Minutes Source #

Number of minutes without a referential.

Constructors

Minutes Int64 |

#### Instances

Instances details

NFData Minutes Source # |
Instance details Defined in Time.Types Methods rnf :: Minutes -> () Source #
Data Minutes Source # |

Instance details

Defined in Time.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Minutes -> c Minutes Source #

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

toConstr :: Minutes -> Constr Source #

dataTypeOf :: Minutes -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Enum Minutes Source # |

Instance details

Defined in Time.Types

Methods

succ :: Minutes -> Minutes Source #

pred :: Minutes -> Minutes Source #

toEnum :: Int -> Minutes Source #

fromEnum :: Minutes -> Int Source #

enumFrom :: Minutes -> [Minutes] Source #

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

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

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

Num Minutes Source # |
Instance details Defined in Time.Types Methods (+) :: Minutes -> Minutes -> Minutes Source # (-) :: Minutes -> Minutes -> Minutes Source # (*) :: Minutes -> Minutes -> Minutes Source # negate :: Minutes -> Minutes Source # abs :: Minutes -> Minutes Source # signum :: Minutes -> Minutes Source # fromInteger :: Integer -> Minutes Source #
Read Minutes Source # |
Instance details Defined in Time.Types Methods readsPrec :: Int -> ReadS Minutes Source # readList :: ReadS [Minutes] Source # readPrec :: ReadPrec Minutes Source # readListPrec :: ReadPrec [Minutes] Source #
Integral Minutes Source # |
Instance details Defined in Time.Types Methods quot :: Minutes -> Minutes -> Minutes Source # rem :: Minutes -> Minutes -> Minutes Source # div :: Minutes -> Minutes -> Minutes Source # mod :: Minutes -> Minutes -> Minutes Source # quotRem :: Minutes -> Minutes -> (Minutes, Minutes) Source # divMod :: Minutes -> Minutes -> (Minutes, Minutes) Source # toInteger :: Minutes -> Integer Source #
Real Minutes Source # |
Instance details Defined in Time.Types Methods toRational :: Minutes -> Rational Source #
Show Minutes Source # |
Instance details Defined in Time.Types Methods showsPrec :: Int -> Minutes -> ShowS Source # show :: Minutes -> String Source # showList :: [Minutes] -> ShowS Source #
Eq Minutes Source # |
Instance details Defined in Time.Types Methods (==) :: Minutes -> Minutes -> Bool Source # (/=) :: Minutes -> Minutes -> Bool Source #
Ord Minutes Source # |
Instance details Defined in Time.Types Methods compare :: Minutes -> Minutes -> Ordering Source # (<) :: Minutes -> Minutes -> Bool Source # (<=) :: Minutes -> Minutes -> Bool Source # (>) :: Minutes -> Minutes -> Bool Source # (>=) :: Minutes -> Minutes -> Bool Source # max :: Minutes -> Minutes -> Minutes Source # min :: Minutes -> Minutes -> Minutes Source #
TimeInterval Minutes Source # |
Instance details Defined in Time.Types Methods toSeconds :: Minutes -> Seconds Source # fromSeconds :: Seconds -> (Minutes, Seconds) Source #

newtype Hours Source #

Number of hours without a referential.

Constructors

Hours Int64 |

#### Instances

Instances details

NFData Hours Source # |
Instance details Defined in Time.Types Methods rnf :: Hours -> () Source #
Data Hours Source # |

Instance details

Defined in Time.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Hours -> c Hours Source #

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

toConstr :: Hours -> Constr Source #

dataTypeOf :: Hours -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Enum Hours Source # |
Instance details Defined in Time.Types Methods succ :: Hours -> Hours Source # pred :: Hours -> Hours Source # toEnum :: Int -> Hours Source # fromEnum :: Hours -> Int Source # enumFrom :: Hours -> [Hours] Source # enumFromThen :: Hours -> Hours -> [Hours] Source # enumFromTo :: Hours -> Hours -> [Hours] Source # enumFromThenTo :: Hours -> Hours -> Hours -> [Hours] Source #
Num Hours Source # |
Instance details Defined in Time.Types Methods (+) :: Hours -> Hours -> Hours Source # (-) :: Hours -> Hours -> Hours Source # (*) :: Hours -> Hours -> Hours Source # negate :: Hours -> Hours Source # abs :: Hours -> Hours Source # signum :: Hours -> Hours Source # fromInteger :: Integer -> Hours Source #
Read Hours Source # |
Instance details Defined in Time.Types Methods readsPrec :: Int -> ReadS Hours Source # readList :: ReadS [Hours] Source # readPrec :: ReadPrec Hours Source # readListPrec :: ReadPrec [Hours] Source #
Integral Hours Source # |
Instance details Defined in Time.Types Methods quot :: Hours -> Hours -> Hours Source # rem :: Hours -> Hours -> Hours Source # div :: Hours -> Hours -> Hours Source # mod :: Hours -> Hours -> Hours Source # quotRem :: Hours -> Hours -> (Hours, Hours) Source # divMod :: Hours -> Hours -> (Hours, Hours) Source # toInteger :: Hours -> Integer Source #
Real Hours Source # |
Instance details Defined in Time.Types Methods toRational :: Hours -> Rational Source #
Show Hours Source # |
Instance details Defined in Time.Types Methods showsPrec :: Int -> Hours -> ShowS Source # show :: Hours -> String Source # showList :: [Hours] -> ShowS Source #
Eq Hours Source # |
Instance details Defined in Time.Types Methods (==) :: Hours -> Hours -> Bool Source # (/=) :: Hours -> Hours -> Bool Source #
Ord Hours Source # |
Instance details Defined in Time.Types Methods compare :: Hours -> Hours -> Ordering Source # (<) :: Hours -> Hours -> Bool Source # (<=) :: Hours -> Hours -> Bool Source # (>) :: Hours -> Hours -> Bool Source # (>=) :: Hours -> Hours -> Bool Source # max :: Hours -> Hours -> Hours Source # min :: Hours -> Hours -> Hours Source #
TimeInterval Hours Source # |
Instance details Defined in Time.Types Methods toSeconds :: Hours -> Seconds Source # fromSeconds :: Seconds -> (Hours, Seconds) Source #

class TimeInterval i where Source #

Represent any time interval that has an equivalent value to a number of seconds.

Methods

toSeconds :: i -> Seconds Source #

fromSeconds :: Seconds -> (i, Seconds) Source #

#### Instances

Instances details

TimeInterval Duration Source # |
Instance details Defined in Data.Hourglass.Diff Methods toSeconds :: Duration -> Seconds Source # fromSeconds :: Seconds -> (Duration, Seconds) Source #
TimeInterval Hours Source # |
Instance details Defined in Time.Types Methods toSeconds :: Hours -> Seconds Source # fromSeconds :: Seconds -> (Hours, Seconds) Source #
TimeInterval Minutes Source # |
Instance details Defined in Time.Types Methods toSeconds :: Minutes -> Seconds Source # fromSeconds :: Seconds -> (Minutes, Seconds) Source #
TimeInterval NanoSeconds Source # |
Instance details Defined in Time.Types Methods toSeconds :: NanoSeconds -> Seconds Source # fromSeconds :: Seconds -> (NanoSeconds, Seconds) Source #
TimeInterval Seconds Source # |
Instance details Defined in Time.Types Methods toSeconds :: Seconds -> Seconds Source # fromSeconds :: Seconds -> (Seconds, Seconds) Source #

# Time enumeration

data Month Source #

Month of the year

Constructors

January |
February |
March |
April |
May |
June |
July |
August |
September |
October |
November |
December |

#### Instances

Instances details

Data Month Source # |

Instance details

Defined in Time.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Month -> c Month Source #

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

toConstr :: Month -> Constr Source #

dataTypeOf :: Month -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Bounded Month Source # |
Instance details Defined in Time.Types Methods minBound :: Month Source # maxBound :: Month Source #
Enum Month Source # |
Instance details Defined in Time.Types Methods succ :: Month -> Month Source # pred :: Month -> Month Source # toEnum :: Int -> Month Source # fromEnum :: Month -> Int Source # enumFrom :: Month -> [Month] Source # enumFromThen :: Month -> Month -> [Month] Source # enumFromTo :: Month -> Month -> [Month] Source # enumFromThenTo :: Month -> Month -> Month -> [Month] Source #
Read Month Source # |
Instance details Defined in Time.Types Methods readsPrec :: Int -> ReadS Month Source # readList :: ReadS [Month] Source # readPrec :: ReadPrec Month Source # readListPrec :: ReadPrec [Month] Source #
Show Month Source # |
Instance details Defined in Time.Types Methods showsPrec :: Int -> Month -> ShowS Source # show :: Month -> String Source # showList :: [Month] -> ShowS Source #
Eq Month Source # |
Instance details Defined in Time.Types Methods (==) :: Month -> Month -> Bool Source # (/=) :: Month -> Month -> Bool Source #
Ord Month Source # |
Instance details Defined in Time.Types Methods compare :: Month -> Month -> Ordering Source # (<) :: Month -> Month -> Bool Source # (<=) :: Month -> Month -> Bool Source # (>) :: Month -> Month -> Bool Source # (>=) :: Month -> Month -> Bool Source # max :: Month -> Month -> Month Source # min :: Month -> Month -> Month Source #

data WeekDay Source #

Day of the week

the enumeration starts on Sunday.

Constructors

Sunday |
Monday |
Tuesday |
Wednesday |
Thursday |
Friday |
Saturday |

#### Instances

Instances details

Data WeekDay Source # |

Instance details

Defined in Time.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> WeekDay -> c WeekDay Source #

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

toConstr :: WeekDay -> Constr Source #

dataTypeOf :: WeekDay -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Bounded WeekDay Source # |
Instance details Defined in Time.Types Methods minBound :: WeekDay Source # maxBound :: WeekDay Source #
Enum WeekDay Source # |

Instance details

Defined in Time.Types

Methods

succ :: WeekDay -> WeekDay Source #

pred :: WeekDay -> WeekDay Source #

toEnum :: Int -> WeekDay Source #

fromEnum :: WeekDay -> Int Source #

enumFrom :: WeekDay -> [WeekDay] Source #

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

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

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

Read WeekDay Source # |
Instance details Defined in Time.Types Methods readsPrec :: Int -> ReadS WeekDay Source # readList :: ReadS [WeekDay] Source # readPrec :: ReadPrec WeekDay Source # readListPrec :: ReadPrec [WeekDay] Source #
Show WeekDay Source # |
Instance details Defined in Time.Types Methods showsPrec :: Int -> WeekDay -> ShowS Source # show :: WeekDay -> String Source # showList :: [WeekDay] -> ShowS Source #
Eq WeekDay Source # |
Instance details Defined in Time.Types Methods (==) :: WeekDay -> WeekDay -> Bool Source # (/=) :: WeekDay -> WeekDay -> Bool Source #
Ord WeekDay Source # |
Instance details Defined in Time.Types Methods compare :: WeekDay -> WeekDay -> Ordering Source # (<) :: WeekDay -> WeekDay -> Bool Source # (<=) :: WeekDay -> WeekDay -> Bool Source # (>) :: WeekDay -> WeekDay -> Bool Source # (>=) :: WeekDay -> WeekDay -> Bool Source # max :: WeekDay -> WeekDay -> WeekDay Source # min :: WeekDay -> WeekDay -> WeekDay Source #

# Timezone

newtype TimezoneOffset Source #

Offset against UTC in minutes to obtain from UTC time, local time.

- a positive number represent a location East of UTC.
- a negative number represent a location West of UTC.

LocalTime t (-300) = t represent a time at UTC-5 LocalTime t (+480) = t represent a time at UTC+8

should be between -11H and +14H

Example: in AUSEDT (UTC+1000 with daylight = UTC+1100), local time is 15:47; Thus, UTC time is 04:47, and TimezoneOffset is +660 (minutes)

Constructors

TimezoneOffset |

Fields

- timezoneOffsetToMinutes :: Int

  return the number of minutes

#### Instances

Instances details

NFData TimezoneOffset Source # |
Instance details Defined in Time.Types Methods rnf :: TimezoneOffset -> () Source #
Data TimezoneOffset Source # |

Instance details

Defined in Time.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TimezoneOffset -> c TimezoneOffset Source #

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

toConstr :: TimezoneOffset -> Constr Source #

dataTypeOf :: TimezoneOffset -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Show TimezoneOffset Source # |
Instance details Defined in Time.Types Methods showsPrec :: Int -> TimezoneOffset -> ShowS Source # show :: TimezoneOffset -> String Source # showList :: [TimezoneOffset] -> ShowS Source #
Eq TimezoneOffset Source # |
Instance details Defined in Time.Types Methods (==) :: TimezoneOffset -> TimezoneOffset -> Bool Source # (/=) :: TimezoneOffset -> TimezoneOffset -> Bool Source #
Ord TimezoneOffset Source # |

Instance details

Defined in Time.Types

Methods

compare :: TimezoneOffset -> TimezoneOffset -> Ordering Source #

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

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

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

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

max :: TimezoneOffset -> TimezoneOffset -> TimezoneOffset Source #

min :: TimezoneOffset -> TimezoneOffset -> TimezoneOffset Source #

timezoneOffsetToSeconds :: TimezoneOffset -> Seconds Source #

Return the number of seconds associated with a timezone

timezone_UTC :: TimezoneOffset Source #

The UTC timezone. offset of 0

# Computer friendly format

## Unix elapsed

newtype Elapsed Source #

A number of seconds elapsed since the unix epoch.

Constructors

Elapsed Seconds |

#### Instances

Instances details

NFData Elapsed Source # |
Instance details Defined in Time.Types Methods rnf :: Elapsed -> () Source #
Data Elapsed Source # |

Instance details

Defined in Time.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Elapsed -> c Elapsed Source #

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

toConstr :: Elapsed -> Constr Source #

dataTypeOf :: Elapsed -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Num Elapsed Source # |
Instance details Defined in Time.Types Methods (+) :: Elapsed -> Elapsed -> Elapsed Source # (-) :: Elapsed -> Elapsed -> Elapsed Source # (*) :: Elapsed -> Elapsed -> Elapsed Source # negate :: Elapsed -> Elapsed Source # abs :: Elapsed -> Elapsed Source # signum :: Elapsed -> Elapsed Source # fromInteger :: Integer -> Elapsed Source #
Read Elapsed Source # |
Instance details Defined in Time.Types Methods readsPrec :: Int -> ReadS Elapsed Source # readList :: ReadS [Elapsed] Source # readPrec :: ReadPrec Elapsed Source # readListPrec :: ReadPrec [Elapsed] Source #
Show Elapsed Source # |
Instance details Defined in Time.Types Methods showsPrec :: Int -> Elapsed -> ShowS Source # show :: Elapsed -> String Source # showList :: [Elapsed] -> ShowS Source #
Eq Elapsed Source # |
Instance details Defined in Time.Types Methods (==) :: Elapsed -> Elapsed -> Bool Source # (/=) :: Elapsed -> Elapsed -> Bool Source #
Ord Elapsed Source # |
Instance details Defined in Time.Types Methods compare :: Elapsed -> Elapsed -> Ordering Source # (<) :: Elapsed -> Elapsed -> Bool Source # (<=) :: Elapsed -> Elapsed -> Bool Source # (>) :: Elapsed -> Elapsed -> Bool Source # (>=) :: Elapsed -> Elapsed -> Bool Source # max :: Elapsed -> Elapsed -> Elapsed Source # min :: Elapsed -> Elapsed -> Elapsed Source #
Time Elapsed Source # |
Instance details Defined in Data.Hourglass.Time Methods timeFromElapsedP :: ElapsedP -> Elapsed Source # timeFromElapsed :: Elapsed -> Elapsed Source #
Timeable Elapsed Source # |
Instance details Defined in Data.Hourglass.Time Methods timeGetElapsedP :: Elapsed -> ElapsedP Source # timeGetElapsed :: Elapsed -> Elapsed Source # timeGetNanoSeconds :: Elapsed -> NanoSeconds Source #

data ElapsedP Source #

A number of seconds and nanoseconds elapsed since the unix epoch.

Constructors

ElapsedP !Elapsed !NanoSeconds |

#### Instances

Instances details

NFData ElapsedP Source # |
Instance details Defined in Time.Types Methods rnf :: ElapsedP -> () Source #
Data ElapsedP Source # |

Instance details

Defined in Time.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ElapsedP -> c ElapsedP Source #

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

toConstr :: ElapsedP -> Constr Source #

dataTypeOf :: ElapsedP -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Num ElapsedP Source # |
Instance details Defined in Time.Types Methods (+) :: ElapsedP -> ElapsedP -> ElapsedP Source # (-) :: ElapsedP -> ElapsedP -> ElapsedP Source # (*) :: ElapsedP -> ElapsedP -> ElapsedP Source # negate :: ElapsedP -> ElapsedP Source # abs :: ElapsedP -> ElapsedP Source # signum :: ElapsedP -> ElapsedP Source # fromInteger :: Integer -> ElapsedP Source #
Read ElapsedP Source # |
Instance details Defined in Time.Types Methods readsPrec :: Int -> ReadS ElapsedP Source # readList :: ReadS [ElapsedP] Source # readPrec :: ReadPrec ElapsedP Source # readListPrec :: ReadPrec [ElapsedP] Source #
Real ElapsedP Source # |
Instance details Defined in Time.Types Methods toRational :: ElapsedP -> Rational Source #
Show ElapsedP Source # |
Instance details Defined in Time.Types Methods showsPrec :: Int -> ElapsedP -> ShowS Source # show :: ElapsedP -> String Source # showList :: [ElapsedP] -> ShowS Source #
Eq ElapsedP Source # |
Instance details Defined in Time.Types Methods (==) :: ElapsedP -> ElapsedP -> Bool Source # (/=) :: ElapsedP -> ElapsedP -> Bool Source #
Ord ElapsedP Source # |
Instance details Defined in Time.Types Methods compare :: ElapsedP -> ElapsedP -> Ordering Source # (<) :: ElapsedP -> ElapsedP -> Bool Source # (<=) :: ElapsedP -> ElapsedP -> Bool Source # (>) :: ElapsedP -> ElapsedP -> Bool Source # (>=) :: ElapsedP -> ElapsedP -> Bool Source # max :: ElapsedP -> ElapsedP -> ElapsedP Source # min :: ElapsedP -> ElapsedP -> ElapsedP Source #
Time ElapsedP Source # |
Instance details Defined in Data.Hourglass.Time Methods timeFromElapsedP :: ElapsedP -> ElapsedP Source # timeFromElapsed :: Elapsed -> ElapsedP Source #
Timeable ElapsedP Source # |
Instance details Defined in Data.Hourglass.Time Methods timeGetElapsedP :: ElapsedP -> ElapsedP Source # timeGetElapsed :: ElapsedP -> Elapsed Source # timeGetNanoSeconds :: ElapsedP -> NanoSeconds Source #

# Human friendly format

## Calendar time

data Date Source #

human date representation using common calendar

Constructors

Date |

Fields

- dateYear :: !Int

  year (Common Era)

- dateMonth :: !Month

  month of the year

- dateDay :: !Int

  day of the month, between 1 to 31

#### Instances

Instances details

NFData Date Source # |
Instance details Defined in Time.Types Methods rnf :: Date -> () Source #
Data Date Source # |

Instance details

Defined in Time.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Date -> c Date Source #

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

toConstr :: Date -> Constr Source #

dataTypeOf :: Date -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Read Date Source # |
Instance details Defined in Time.Types Methods readsPrec :: Int -> ReadS Date Source # readList :: ReadS [Date] Source # readPrec :: ReadPrec Date Source # readListPrec :: ReadPrec [Date] Source #
Show Date Source # |
Instance details Defined in Time.Types Methods showsPrec :: Int -> Date -> ShowS Source # show :: Date -> String Source # showList :: [Date] -> ShowS Source #
Eq Date Source # |
Instance details Defined in Time.Types Methods (==) :: Date -> Date -> Bool Source # (/=) :: Date -> Date -> Bool Source #
Ord Date Source # |
Instance details Defined in Time.Types Methods compare :: Date -> Date -> Ordering Source # (<) :: Date -> Date -> Bool Source # (<=) :: Date -> Date -> Bool Source # (>) :: Date -> Date -> Bool Source # (>=) :: Date -> Date -> Bool Source # max :: Date -> Date -> Date Source # min :: Date -> Date -> Date Source #
Time Date Source # |
Instance details Defined in Data.Hourglass.Time Methods timeFromElapsedP :: ElapsedP -> Date Source # timeFromElapsed :: Elapsed -> Date Source #
Timeable Date Source # |
Instance details Defined in Data.Hourglass.Time Methods timeGetElapsedP :: Date -> ElapsedP Source # timeGetElapsed :: Date -> Elapsed Source # timeGetNanoSeconds :: Date -> NanoSeconds Source #

data TimeOfDay Source #

human time representation of hour, minutes, seconds in a day.

Constructors

TimeOfDay |

Fields

- todHour :: !Hours

  hours, between 0 and 23

- todMin :: !Minutes

  minutes, between 0 and 59

- todSec :: !Seconds

  seconds, between 0 and 59. 60 when having leap second */

- todNSec :: !NanoSeconds

  nanoseconds, between 0 and 999999999 */

#### Instances

Instances details

NFData TimeOfDay Source # |
Instance details Defined in Time.Types Methods rnf :: TimeOfDay -> () Source #
Data TimeOfDay Source # |

Instance details

Defined in Time.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TimeOfDay -> c TimeOfDay Source #

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

toConstr :: TimeOfDay -> Constr Source #

dataTypeOf :: TimeOfDay -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Read TimeOfDay Source # |
Instance details Defined in Time.Types Methods readsPrec :: Int -> ReadS TimeOfDay Source # readList :: ReadS [TimeOfDay] Source # readPrec :: ReadPrec TimeOfDay Source # readListPrec :: ReadPrec [TimeOfDay] Source #
Show TimeOfDay Source # |
Instance details Defined in Time.Types Methods showsPrec :: Int -> TimeOfDay -> ShowS Source # show :: TimeOfDay -> String Source # showList :: [TimeOfDay] -> ShowS Source #
Eq TimeOfDay Source # |
Instance details Defined in Time.Types Methods (==) :: TimeOfDay -> TimeOfDay -> Bool Source # (/=) :: TimeOfDay -> TimeOfDay -> Bool Source #
Ord TimeOfDay Source # |
Instance details Defined in Time.Types Methods compare :: TimeOfDay -> TimeOfDay -> Ordering Source # (<) :: TimeOfDay -> TimeOfDay -> Bool Source # (<=) :: TimeOfDay -> TimeOfDay -> Bool Source # (>) :: TimeOfDay -> TimeOfDay -> Bool Source # (>=) :: TimeOfDay -> TimeOfDay -> Bool Source # max :: TimeOfDay -> TimeOfDay -> TimeOfDay Source # min :: TimeOfDay -> TimeOfDay -> TimeOfDay Source #

data DateTime Source #

Date and Time

Constructors

DateTime |

Fields

- dtDate :: Date
- dtTime :: TimeOfDay

#### Instances

Instances details

NFData DateTime Source # |
Instance details Defined in Time.Types Methods rnf :: DateTime -> () Source #
Data DateTime Source # |

Instance details

Defined in Time.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DateTime -> c DateTime Source #

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

toConstr :: DateTime -> Constr Source #

dataTypeOf :: DateTime -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Read DateTime Source # |
Instance details Defined in Time.Types Methods readsPrec :: Int -> ReadS DateTime Source # readList :: ReadS [DateTime] Source # readPrec :: ReadPrec DateTime Source # readListPrec :: ReadPrec [DateTime] Source #
Show DateTime Source # |
Instance details Defined in Time.Types Methods showsPrec :: Int -> DateTime -> ShowS Source # show :: DateTime -> String Source # showList :: [DateTime] -> ShowS Source #
Eq DateTime Source # |
Instance details Defined in Time.Types Methods (==) :: DateTime -> DateTime -> Bool Source # (/=) :: DateTime -> DateTime -> Bool Source #
Ord DateTime Source # |
Instance details Defined in Time.Types Methods compare :: DateTime -> DateTime -> Ordering Source # (<) :: DateTime -> DateTime -> Bool Source # (<=) :: DateTime -> DateTime -> Bool Source # (>) :: DateTime -> DateTime -> Bool Source # (>=) :: DateTime -> DateTime -> Bool Source # max :: DateTime -> DateTime -> DateTime Source # min :: DateTime -> DateTime -> DateTime Source #
Time DateTime Source # |
Instance details Defined in Data.Hourglass.Time Methods timeFromElapsedP :: ElapsedP -> DateTime Source # timeFromElapsed :: Elapsed -> DateTime Source #
Timeable DateTime Source # |
Instance details Defined in Data.Hourglass.Time Methods timeGetElapsedP :: DateTime -> ElapsedP Source # timeGetElapsed :: DateTime -> Elapsed Source # timeGetNanoSeconds :: DateTime -> NanoSeconds Source #