calamity-0.1.0.0: A library for writing discord bots
Calamity.Types.UnixTimestamp
Description
Parsing of unix timestamps
newtype UnixTimestamp Source #
Constructors
Fields
Defined in Calamity.Types.UnixTimestamp
Methods
(==) :: UnixTimestamp -> UnixTimestamp -> Bool #
(/=) :: UnixTimestamp -> UnixTimestamp -> Bool #
showsPrec :: Int -> UnixTimestamp -> ShowS #
show :: UnixTimestamp -> String #
showList :: [UnixTimestamp] -> ShowS #
Associated Types
type Rep UnixTimestamp :: Type -> Type #
from :: UnixTimestamp -> Rep UnixTimestamp x #
to :: Rep UnixTimestamp x -> UnixTimestamp #
toJSON :: UnixTimestamp -> Value #
toEncoding :: UnixTimestamp -> Encoding #
toJSONList :: [UnixTimestamp] -> Value #
toEncodingList :: [UnixTimestamp] -> Encoding #
parseJSON :: Value -> Parser UnixTimestamp #
parseJSONList :: Value -> Parser [UnixTimestamp] #
showbPrec :: Int -> UnixTimestamp -> Builder #
showb :: UnixTimestamp -> Builder #
showbList :: [UnixTimestamp] -> Builder #
showtPrec :: Int -> UnixTimestamp -> Text #
showt :: UnixTimestamp -> Text #
showtList :: [UnixTimestamp] -> Text #
showtlPrec :: Int -> UnixTimestamp -> Text #
showtl :: UnixTimestamp -> Text #
showtlList :: [UnixTimestamp] -> Text #
unixToMilliseconds :: UnixTimestamp -> Word64 Source #
millisecondsToUnix :: Word64 -> UnixTimestamp Source #