SimpleTimeSerializer

Default KSerializer for SimpleTime - encodes as the string "HH:mm:ss.NNNNNNNNN", always in Asia/Kathmandu (the timezone all SimpleTimes in this library are anchored to). The nanosecond fractional part is omitted when nanosecond == 0 to keep wire payloads small.

Wire format examples:

  • "09:30:00"

  • "23:59:59.123456789"

The string itself is defined by NepaliTimeFormatter in the -core artifact, which every published target carries. Swift and JavaScript consumers reach the same wire form through it without depending on kotlinx-serialization.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

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