calamity-0.1.14.3: A library for writing discord bots
Safe HaskellNone
LanguageHaskell2010

Calamity.Types.UnixTimestamp

Description

Parsing of unix timestamps

Documentation

newtype UnixTimestamp Source #

Constructors

UnixTimestamp 

Instances

Instances details
Eq UnixTimestamp Source # 
Instance details

Defined in Calamity.Types.UnixTimestamp

Show UnixTimestamp Source # 
Instance details

Defined in Calamity.Types.UnixTimestamp

Generic UnixTimestamp Source # 
Instance details

Defined in Calamity.Types.UnixTimestamp

Associated Types

type Rep UnixTimestamp :: Type -> Type #

TextShow UnixTimestamp Source # 
Instance details

Defined in Calamity.Types.UnixTimestamp

FromJSON UnixTimestamp Source # 
Instance details

Defined in Calamity.Types.UnixTimestamp

Methods

parseJSON :: Value -> Parser UnixTimestamp

parseJSONList :: Value -> Parser [UnixTimestamp]

ToJSON UnixTimestamp Source # 
Instance details

Defined in Calamity.Types.UnixTimestamp

Methods

toJSON :: UnixTimestamp -> Value

toEncoding :: UnixTimestamp -> Encoding

toJSONList :: [UnixTimestamp] -> Value

toEncodingList :: [UnixTimestamp] -> Encoding

type Rep UnixTimestamp Source # 
Instance details

Defined in Calamity.Types.UnixTimestamp

type Rep UnixTimestamp = D1 ('MetaData "UnixTimestamp" "Calamity.Types.UnixTimestamp" "calamity-0.1.14.3-inplace" 'True) (C1 ('MetaCons "UnixTimestamp" 'PrefixI 'True) (S1 ('MetaSel ('Just "unUnixTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime)))