JavaLocalTimeAdapter

object JavaLocalTimeAdapter : Adapter<LocalTime>

An Adapter that converts a time to/from java.time.LocalTime

Examples:

  • "14:35: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): LocalTime
Link copied to clipboard
open override fun toJson(    writer: JsonWriter,     customScalarAdapters: CustomScalarAdapters,     value: LocalTime)