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 HaskellNone
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 
Instance details

Defined in Amazonka.Data.Time

type Rep Format = D1 ('MetaData "Format" "Amazonka.Data.Time" "amazonka-core-2.0-6bxllQWcIeC2tlnqDYDFDp" '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))))

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-6bxllQWcIeC2tlnqDYDFDp" '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 #

NFData (Time a) Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

rnf :: Time a -> () #

Generic (Time a) Source # 
Instance details

Defined in Amazonka.Data.Time

Associated Types

type Rep (Time a) 
Instance details

Defined in Amazonka.Data.Time

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

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 #

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

hash :: Time a -> Int Source #

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-6bxllQWcIeC2tlnqDYDFDp" 'True) (C1 ('MetaCons "Time" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime)))

_Time :: forall (a :: Format) p f. (Profunctor p, Functor f) => p UTCTime (f UTCTime) -> p (Time a) (f (Time a)) Source #

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

NFData UTCTime 
Instance details

Defined in Data.Time.Clock.Internal.UTCTime

Methods

rnf :: UTCTime -> () #

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 #

Generic UTCTime 
Instance details

Defined in Data.Time.Orphans

Associated Types

type Rep UTCTime 
Instance details

Defined in Data.Time.Orphans

type Rep UTCTime = D1 ('MetaData "UTCTime" "Data.Time.Clock.Internal.UTCTime" "time-1.12.2-979c" 'False) (C1 ('MetaCons "UTCTime" 'PrefixI 'True) (S1 ('MetaSel ('Just "utctDay") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Day) :*: S1 ('MetaSel ('Just "utctDayTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DiffTime)))

Methods

from :: UTCTime -> Rep UTCTime x #

to :: Rep UTCTime x -> UTCTime #

Read UTCTime 
Instance details

Defined in Data.Time.Format.Parse

Show UTCTime 
Instance details

Defined in Data.Time.LocalTime.Internal.ZonedTime

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

Hashable UTCTime 
Instance details

Defined in Data.Time.Orphans

FormatTime UTCTime 
Instance details

Defined in Data.Time.Format.Format.Instances

ISO8601 UTCTime

yyyy-mm-ddThh:mm:ss[.sss]Z (ISO 8601:2004(E) sec. 4.3.2 extended format)

Instance details

Defined in Data.Time.Format.ISO8601

ParseTime UTCTime 
Instance details

Defined in Data.Time.Format.Parse.Instances

Lift UTCTime 
Instance details

Defined in Data.Time.Orphans

Methods

lift :: Quote m => UTCTime -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => UTCTime -> Code m UTCTime #

type Rep UTCTime 
Instance details

Defined in Data.Time.Orphans

type Rep UTCTime = D1 ('MetaData "UTCTime" "Data.Time.Clock.Internal.UTCTime" "time-1.12.2-979c" 'False) (C1 ('MetaCons "UTCTime" 'PrefixI 'True) (S1 ('MetaSel ('Just "utctDay") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Day) :*: S1 ('MetaSel ('Just "utctDayTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DiffTime)))