InstantAsLongSerializer

object InstantAsLongSerializer : KSerializer<Instant> (source)

Serializes an Instant to its' epoch millis. ⚠️ Nanosecond precision is lost when encoding/decoding Instants with this serializer

Functions

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

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor