JavaInstantAdapter
An Adapter that converts an ISO 8601 String to/from a java.time.Instant When writing, it discards the offset information.
Examples:
"2010-06-01T22:19:44.475Z"
"2010-06-01T23: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): Instant
Content copied to clipboard
Link copied to clipboard
open override fun toJson( writer: JsonWriter, customScalarAdapters: CustomScalarAdapters, value: Instant)
Content copied to clipboard