gogol-core-0.3.0: Core data types and functionality for Gogol libraries.

Copyright(c) 2015-2016 Brendan Hay <brendan.g.hay@gmail.com>
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Data.Time

Description

 
Synopsis

Documentation

data Time' Source #

This SHOULD be a time in the format of hh:mm:ss. It is recommended that you use the "date-time" format instead of "time" unless you need to transfer only the time part.

Instances
Eq Time' Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

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

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

Data Time' Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

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

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

toConstr :: Time' -> Constr #

dataTypeOf :: Time' -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord Time' Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

compare :: Time' -> Time' -> Ordering #

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

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

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

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

max :: Time' -> Time' -> Time' #

min :: Time' -> Time' -> Time' #

Read Time' Source # 
Instance details

Defined in Network.Google.Data.Time

Show Time' Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

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

show :: Time' -> String #

showList :: [Time'] -> ShowS #

Generic Time' Source # 
Instance details

Defined in Network.Google.Data.Time

Associated Types

type Rep Time' :: * -> * #

Methods

from :: Time' -> Rep Time' x #

to :: Rep Time' x -> Time' #

FromJSON Time' Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

parseJSON :: Value -> Parser Time' #

parseJSONList :: Value -> Parser [Time'] #

ToJSON Time' Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

toJSON :: Time' -> Value #

toEncoding :: Time' -> Encoding #

toJSONList :: [Time'] -> Value #

toEncodingList :: [Time'] -> Encoding #

FromHttpApiData Time' Source # 
Instance details

Defined in Network.Google.Data.Time

ToHttpApiData Time' Source # 
Instance details

Defined in Network.Google.Data.Time

type Rep Time' Source # 
Instance details

Defined in Network.Google.Data.Time

type Rep Time' = D1 (MetaData "Time'" "Network.Google.Data.Time" "gogol-core-0.3.0-B7FUFgRjZduJ6WctkO583k" True) (C1 (MetaCons "Time'" PrefixI True) (S1 (MetaSel (Just "unTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TimeOfDay)))

data Date' Source #

This SHOULD be a date in the format of YYYY-MM-DD. It is recommended that you use the "date-time" format instead of "date" unless you need to transfer only the date part.

Instances
Eq Date' Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

(==) :: Date' -> Date' -> Bool #

(/=) :: Date' -> Date' -> Bool #

Data Date' Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

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

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

toConstr :: Date' -> Constr #

dataTypeOf :: Date' -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord Date' Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

compare :: Date' -> Date' -> Ordering #

(<) :: Date' -> Date' -> Bool #

(<=) :: Date' -> Date' -> Bool #

(>) :: Date' -> Date' -> Bool #

(>=) :: Date' -> Date' -> Bool #

max :: Date' -> Date' -> Date' #

min :: Date' -> Date' -> Date' #

Read Date' Source # 
Instance details

Defined in Network.Google.Data.Time

Show Date' Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

showsPrec :: Int -> Date' -> ShowS #

show :: Date' -> String #

showList :: [Date'] -> ShowS #

Generic Date' Source # 
Instance details

Defined in Network.Google.Data.Time

Associated Types

type Rep Date' :: * -> * #

Methods

from :: Date' -> Rep Date' x #

to :: Rep Date' x -> Date' #

FromJSON Date' Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

parseJSON :: Value -> Parser Date' #

parseJSONList :: Value -> Parser [Date'] #

ToJSON Date' Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

toJSON :: Date' -> Value #

toEncoding :: Date' -> Encoding #

toJSONList :: [Date'] -> Value #

toEncodingList :: [Date'] -> Encoding #

FromHttpApiData Date' Source # 
Instance details

Defined in Network.Google.Data.Time

ToHttpApiData Date' Source # 
Instance details

Defined in Network.Google.Data.Time

type Rep Date' Source # 
Instance details

Defined in Network.Google.Data.Time

type Rep Date' = D1 (MetaData "Date'" "Network.Google.Data.Time" "gogol-core-0.3.0-B7FUFgRjZduJ6WctkO583k" True) (C1 (MetaCons "Date'" PrefixI True) (S1 (MetaSel (Just "unDate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Day)))

data DateTime' Source #

This SHOULD be a date in ISO 8601 format of YYYY-MM- DDThh:mm:ssZ in UTC time. This is the recommended form of date/timestamp.

Instances
Eq DateTime' Source # 
Instance details

Defined in Network.Google.Data.Time

Data DateTime' Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

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

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

toConstr :: DateTime' -> Constr #

dataTypeOf :: DateTime' -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord DateTime' Source # 
Instance details

Defined in Network.Google.Data.Time

Read DateTime' Source # 
Instance details

Defined in Network.Google.Data.Time

Show DateTime' Source # 
Instance details

Defined in Network.Google.Data.Time

Generic DateTime' Source # 
Instance details

Defined in Network.Google.Data.Time

Associated Types

type Rep DateTime' :: * -> * #

FromJSON DateTime' Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

parseJSON :: Value -> Parser DateTime' #

parseJSONList :: Value -> Parser [DateTime'] #

ToJSON DateTime' Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

toJSON :: DateTime' -> Value #

toEncoding :: DateTime' -> Encoding #

toJSONList :: [DateTime'] -> Value #

toEncodingList :: [DateTime'] -> Encoding #

FromHttpApiData DateTime' Source # 
Instance details

Defined in Network.Google.Data.Time

ToHttpApiData DateTime' Source # 
Instance details

Defined in Network.Google.Data.Time

type Rep DateTime' Source # 
Instance details

Defined in Network.Google.Data.Time

type Rep DateTime' = D1 (MetaData "DateTime'" "Network.Google.Data.Time" "gogol-core-0.3.0-B7FUFgRjZduJ6WctkO583k" True) (C1 (MetaCons "DateTime'" PrefixI True) (S1 (MetaSel (Just "unDateTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)))

data Duration Source #

A duration in seconds with up to nine fractional digits, terminated by s.

Example: "3.5s".

Instances
Eq Duration Source # 
Instance details

Defined in Network.Google.Data.Time

Data Duration Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

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

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

toConstr :: Duration -> Constr #

dataTypeOf :: Duration -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord Duration Source # 
Instance details

Defined in Network.Google.Data.Time

Read Duration Source # 
Instance details

Defined in Network.Google.Data.Time

Show Duration Source # 
Instance details

Defined in Network.Google.Data.Time

Generic Duration Source # 
Instance details

Defined in Network.Google.Data.Time

Associated Types

type Rep Duration :: * -> * #

Methods

from :: Duration -> Rep Duration x #

to :: Rep Duration x -> Duration #

FromJSON Duration Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

parseJSON :: Value -> Parser Duration #

parseJSONList :: Value -> Parser [Duration] #

ToJSON Duration Source # 
Instance details

Defined in Network.Google.Data.Time

Methods

toJSON :: Duration -> Value #

toEncoding :: Duration -> Encoding #

toJSONList :: [Duration] -> Value #

toEncodingList :: [Duration] -> Encoding #

FromHttpApiData Duration Source # 
Instance details

Defined in Network.Google.Data.Time

ToHttpApiData Duration Source # 
Instance details

Defined in Network.Google.Data.Time

type Rep Duration Source # 
Instance details

Defined in Network.Google.Data.Time

type Rep Duration = D1 (MetaData "Duration" "Network.Google.Data.Time" "gogol-core-0.3.0-B7FUFgRjZduJ6WctkO583k" True) (C1 (MetaCons "Duration" PrefixI True) (S1 (MetaSel (Just "unDuration") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Scientific)))