JavaOffsetDateTimeAdapter

object JavaOffsetDateTimeAdapter : Adapter<OffsetDateTime>

An Adapter that converts a date and time to/from java.time.OffsetDateTime

Examples:

  • "2010-06-01T22:19:44.475+01:00"

It requires Android Gradle plugin 4.0 or newer and core library desugaring.

Functions

Link copied to clipboard
open override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): OffsetDateTime
Link copied to clipboard
open override fun toJson(    writer: JsonWriter,     customScalarAdapters: CustomScalarAdapters,     value: OffsetDateTime)