toJavaDuration

@ExperimentalTime
inline fun Duration.toJavaDuration(): Duration

Converts kotlin.time.Duration value to java.time.Duration value.

Durations greater than Long.MAX_VALUE seconds are cut to that value.

Since Kotlin

1.3