DateTimePeriodIso8601Serializer

object DateTimePeriodIso8601Serializer : KSerializer<DateTimePeriod>

A serializer for DateTimePeriod that represents it as an ISO-8601 duration string.

JSON example: "P1DT-1H"

See also

Functions

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

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor