Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Time
Instances
Eq Format Source # | |
Read Format Source # | |
Show Format Source # | |
Generic Format Source # | |
type Rep Format Source # | |
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 #
Instances
Formats
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
Eq UTCTime | |
Data UTCTime | |
Defined in Data.Time.Clock.Internal.UTCTime 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 | |
Defined in Data.Time.Clock.Internal.UTCTime | |
NFData UTCTime | |
Defined in Data.Time.Clock.Internal.UTCTime | |
ToJSON UTCTime | |
Defined in Data.Aeson.Types.ToJSON | |
ToJSONKey UTCTime | |
Defined in Data.Aeson.Types.ToJSON | |
FromJSON UTCTime | |
FromJSONKey UTCTime | |
ToByteString UTCTime Source # | |
Defined in Amazonka.Data.ByteString toBS :: UTCTime -> ByteString Source # | |
ToLog UTCTime Source # | |
Defined in Amazonka.Data.Log build :: UTCTime -> ByteStringBuilder Source # |
type RFC822 = Time 'RFC822Format Source #
type ISO8601 = Time 'ISO8601Format Source #
type BasicTime = Time 'BasicFormat Source #
type POSIX = Time 'POSIXFormat Source #