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 #
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
parseJSON :: Value -> Parser UnixTimestamp
parseJSONList :: Value -> Parser [UnixTimestamp]
toJSON :: UnixTimestamp -> Value
toEncoding :: UnixTimestamp -> Encoding
toJSONList :: [UnixTimestamp] -> Value
toEncodingList :: [UnixTimestamp] -> Encoding
unixToMilliseconds :: UnixTimestamp -> Word64 Source #
millisecondsToUnix :: Word64 -> UnixTimestamp Source #