libZSamazonka-coreZSamazonka-core
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Data.Time

Contents

Description

 
Synopsis

Time

data Format Source #

Instances

Instances details
Eq Format Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

(==) :: Format -> Format -> Bool #

(/=) :: Format -> Format -> Bool #

Read Format Source # 
Instance details

Defined in Amazonka.Data.Time

Show Format Source # 
Instance details

Defined in Amazonka.Data.Time

Generic Format Source # 
Instance details

Defined in Amazonka.Data.Time

Associated Types

type Rep Format :: Type -> Type #

Methods

from :: Format -> Rep Format x #

to :: Rep Format x -> Format #

type Rep Format Source # 
Instance details

Defined in Amazonka.Data.Time

type Rep Format = D1 ('MetaData "Format" "Amazonka.Data.Time" "libZSamazonka-coreZSamazonka-core" 'False) ((C1 ('MetaCons "RFC822Format" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ISO8601Format" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "BasicFormat" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AWSFormat" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "POSIXFormat" 'PrefixI 'False) (U1 :: Type -> Type))))

newtype Time (a :: Format) Source #

Constructors

Time 

Fields

Instances

Instances details
ToJSON POSIX Source # 
Instance details

Defined in Amazonka.Data.Time

ToJSON AWSTime Source # 
Instance details

Defined in Amazonka.Data.Time

ToJSON BasicTime Source # 
Instance details

Defined in Amazonka.Data.Time

ToJSON ISO8601 Source # 
Instance details

Defined in Amazonka.Data.Time

ToJSON RFC822 Source # 
Instance details

Defined in Amazonka.Data.Time

FromJSON POSIX Source # 
Instance details

Defined in Amazonka.Data.Time

FromJSON AWSTime Source # 
Instance details

Defined in Amazonka.Data.Time

FromJSON BasicTime Source # 
Instance details

Defined in Amazonka.Data.Time

FromJSON ISO8601 Source # 
Instance details

Defined in Amazonka.Data.Time

FromJSON RFC822 Source # 
Instance details

Defined in Amazonka.Data.Time

ToText POSIX Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

toText :: POSIX -> Text Source #

ToText AWSTime Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

toText :: AWSTime -> Text Source #

ToText BasicTime Source # 
Instance details

Defined in Amazonka.Data.Time

ToText ISO8601 Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

toText :: ISO8601 -> Text Source #

ToText RFC822 Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

toText :: RFC822 -> Text Source #

FromText POSIX Source # 
Instance details

Defined in Amazonka.Data.Time

FromText AWSTime Source # 
Instance details

Defined in Amazonka.Data.Time

FromText BasicTime Source # 
Instance details

Defined in Amazonka.Data.Time

FromText ISO8601 Source # 
Instance details

Defined in Amazonka.Data.Time

FromText RFC822 Source # 
Instance details

Defined in Amazonka.Data.Time

ToByteString AWSTime Source # 
Instance details

Defined in Amazonka.Data.Time

ToByteString BasicTime Source # 
Instance details

Defined in Amazonka.Data.Time

ToByteString ISO8601 Source # 
Instance details

Defined in Amazonka.Data.Time

ToByteString RFC822 Source # 
Instance details

Defined in Amazonka.Data.Time

ToXML AWSTime Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

toXML :: AWSTime -> XML Source #

ToXML BasicTime Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

toXML :: BasicTime -> XML Source #

ToXML ISO8601 Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

toXML :: ISO8601 -> XML Source #

ToXML RFC822 Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

toXML :: RFC822 -> XML Source #

FromXML AWSTime Source # 
Instance details

Defined in Amazonka.Data.Time

FromXML BasicTime Source # 
Instance details

Defined in Amazonka.Data.Time

FromXML ISO8601 Source # 
Instance details

Defined in Amazonka.Data.Time

FromXML RFC822 Source # 
Instance details

Defined in Amazonka.Data.Time

ToQuery POSIX Source # 
Instance details

Defined in Amazonka.Data.Time

ToQuery AWSTime Source # 
Instance details

Defined in Amazonka.Data.Time

ToQuery BasicTime Source # 
Instance details

Defined in Amazonka.Data.Time

ToQuery ISO8601 Source # 
Instance details

Defined in Amazonka.Data.Time

ToQuery RFC822 Source # 
Instance details

Defined in Amazonka.Data.Time

Eq (Time a) Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

(==) :: Time a -> Time a -> Bool #

(/=) :: Time a -> Time a -> Bool #

Ord (Time a) Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

compare :: Time a -> Time a -> Ordering #

(<) :: Time a -> Time a -> Bool #

(<=) :: Time a -> Time a -> Bool #

(>) :: Time a -> Time a -> Bool #

(>=) :: Time a -> Time a -> Bool #

max :: Time a -> Time a -> Time a #

min :: Time a -> Time a -> Time a #

Read (Time a) Source # 
Instance details

Defined in Amazonka.Data.Time

Show (Time a) Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

showsPrec :: Int -> Time a -> ShowS #

show :: Time a -> String #

showList :: [Time a] -> ShowS #

Generic (Time a) Source # 
Instance details

Defined in Amazonka.Data.Time

Associated Types

type Rep (Time a) :: Type -> Type #

Methods

from :: Time a -> Rep (Time a) x #

to :: Rep (Time a) x -> Time a #

NFData (Time a) Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

rnf :: Time a -> () #

Hashable (Time a) Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

hashWithSalt :: Int -> Time a -> Int #

hash :: Time a -> Int #

type Rep (Time a) Source # 
Instance details

Defined in Amazonka.Data.Time

type Rep (Time a) = D1 ('MetaData "Time" "Amazonka.Data.Time" "libZSamazonka-coreZSamazonka-core" 'True) (C1 ('MetaCons "Time" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime)))

Formats

data UTCTime #

This is the simplest representation of UTC. It consists of the day number, and a time offset from midnight. Note that if a day has a leap second added to it, it will have 86401 seconds.

Instances

Instances details
Eq UTCTime 
Instance details

Defined in Data.Time.Clock.Internal.UTCTime

Methods

(==) :: UTCTime -> UTCTime -> Bool #

(/=) :: UTCTime -> UTCTime -> Bool #

Data UTCTime 
Instance details

Defined in Data.Time.Clock.Internal.UTCTime

Methods

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

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

toConstr :: UTCTime -> Constr #

dataTypeOf :: UTCTime -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord UTCTime 
Instance details

Defined in Data.Time.Clock.Internal.UTCTime

NFData UTCTime 
Instance details

Defined in Data.Time.Clock.Internal.UTCTime

Methods

rnf :: UTCTime -> () #

ToJSON UTCTime 
Instance details

Defined in Data.Aeson.Types.ToJSON

ToJSONKey UTCTime 
Instance details

Defined in Data.Aeson.Types.ToJSON

FromJSON UTCTime 
Instance details

Defined in Data.Aeson.Types.FromJSON

FromJSONKey UTCTime 
Instance details

Defined in Data.Aeson.Types.FromJSON

ToByteString UTCTime Source # 
Instance details

Defined in Amazonka.Data.ByteString

ToLog UTCTime Source # 
Instance details

Defined in Amazonka.Data.Log