anmolitor/elm-protoc-utils/1.1.0

NOTE: the latest version is 2.3.0

Formerly andreasewering/elm-protoc-utils. Search finds this package by either name.

Protobuf.Utils.Timestamp

Conversions between the Protobuf Well-Known Type "Timestamp" and Elm's Time.Posix.

posixToTimestamp : Posix -> Timestamp

Convert a posix millisecond timestamp into the protobuf seconds/nanos representation

timestampToPosix : Timestamp -> Posix

Convert the protobuf seconds/nanos representation into a posix millisecond timestamp

timestampJsonEncoder : Timestamp -> Value

Custom JSON encoder for timestamps as ISO-8601 date strings

timestampJsonDecoder : Decoder Timestamp

Custom JSON decoder for timestamps as ISO-8601 date strings