TimestampSerializer

object TimestampSerializer : KSerializer<Timestamp> (source)

Serializes a Timestamp as the RFC 3339 string of the Data Connect Timestamp scalar: always UTC with nine fractional digits when encoding (2024-01-02T03:04:05.123456789Z), any offset and up to nine fractional digits when decoding. Written over kotlin.time.Instant (the Android SDK's uses java.text.SimpleDateFormat), specific to the Data Connect wire format.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): Timestamp
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: Timestamp)