TimePoint encodes a point in time in microseconds.
A point in time in microseconds.
fromMicroseconds : Basics.Int -> TimePoint
Convert microseconds to a TimePoint
.
toMicroseconds : TimePoint -> Basics.Int
Convert a TimePoint
to microseconds.
Time.Posix
toPosix : TimePoint -> Time.Posix
Convert a TimePoint
to a Time.Posix
. Since Time.Posix
uses milliseconds
and EOSIO uses microseconds, you may lose some information.
fromPosix : Time.Posix -> TimePoint
Convert a Time.Posix
to a TimePoint
. Since Time.Posix
uses milliseconds
and EOSIO uses microseconds, you may lose some information.
encode : TimePoint -> Json.Encode.Value
Encode a TimePoint into JSON. You can use this to send a TimePoint to the blockchain or some server.
decoder : Json.Decode.Decoder TimePoint
Decode a TimePoint from JSON. You can use this to receive a TimePoint from the blockchain or some server.