amazonka-core-2.0: Core data types and functionality for Amazonka libraries.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Data.Time

Contents

Description

 
Synopsis

Time

data Format Source #

Instances

Instances details
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 #

Read Format Source # 
Instance details

Defined in Amazonka.Data.Time

Show Format Source # 
Instance details

Defined in Amazonka.Data.Time

Eq Format Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

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

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

type Rep Format Source # 
Instance details

Defined in Amazonka.Data.Time

type Rep Format = D1 ('MetaData "Format" "Amazonka.Data.Time" "amazonka-core-2.0-BFuA7FRvuklLoYhn4b6A6p" '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
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 POSIX Source # 
Instance details

Defined in Amazonka.Data.Time

FromJSON RFC822 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 POSIX Source # 
Instance details

Defined in Amazonka.Data.Time

ToJSON 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

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 POSIX Source # 
Instance details

Defined in Amazonka.Data.Time

ToQuery RFC822 Source # 
Instance details

Defined in Amazonka.Data.Time

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 POSIX Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

toText :: POSIX -> Text Source #

ToText RFC822 Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

toText :: RFC822 -> Text 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

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 #

FromText (Time fmt) Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

fromText :: Text -> Either String (Time fmt) Source #

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 #

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 #

NFData (Time a) Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

rnf :: Time a -> () #

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 #

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" "amazonka-core-2.0-BFuA7FRvuklLoYhn4b6A6p" '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
FromJSON UTCTime 
Instance details

Defined in Data.Aeson.Types.FromJSON

FromJSONKey UTCTime 
Instance details

Defined in Data.Aeson.Types.FromJSON

ToJSON UTCTime 
Instance details

Defined in Data.Aeson.Types.ToJSON

ToJSONKey UTCTime 
Instance details

Defined in Data.Aeson.Types.ToJSON

ToByteString UTCTime Source # 
Instance details

Defined in Amazonka.Data.ByteString

ToLog UTCTime Source # 
Instance details

Defined in Amazonka.Data.Log

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 #

NFData UTCTime 
Instance details

Defined in Data.Time.Clock.Internal.UTCTime

Methods

rnf :: UTCTime -> () #

Eq UTCTime 
Instance details

Defined in Data.Time.Clock.Internal.UTCTime

Methods

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

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

Ord UTCTime 
Instance details

Defined in Data.Time.Clock.Internal.UTCTime