W3cubDocs

/Kotlin

Extensions for java.time.Duration

Platform and version requirements: JVM (1.3), JRE8 (1.3)

toKotlinDuration

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

fun Duration.toKotlinDuration(): Duration

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.time/java.time.-duration/index.html