KotlinJavaDurationConverter

object KotlinJavaDurationConverter : <ERROR CLASS> ERROR CLASS: Symbol not found for MapTypeConverter<ERROR CLASS: Symbol not found for KDuration, java/time/Duration>

kotlin.time.Duration ↔ java.time.Duration via the stdlib JVM bridges.

Kotlin → Java is exact for all finite durations. Java → Kotlin is exact up to nanosecond precision within ±146 years; beyond that range kotlin.time stores milliseconds, so sub-millisecond detail of extreme java durations is dropped.

Functions

Link copied to clipboard
open override fun convertFrom(target: Duration): ERROR CLASS: Symbol not found for KDuration
Link copied to clipboard
open override fun convertTo(source: ERROR CLASS: Symbol not found for KDuration): Duration