← Docs
kotlin-stdlib / kotlin.time / toTimeUnit

toTimeUnit

JVM
1.8
fun DurationUnit . toTimeUnit ( ) : TimeUnit
(source)

Converts this kotlin.time.DurationUnit enum value to the corresponding java.util.concurrent.TimeUnit value.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .