W3cubDocs

/Kotlin

div

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
operator fun div(scale: Int): Duration
operator fun div(scale: Double): Duration

Returns a duration whose value is this duration value divided by the given scale number.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
operator fun div(other: Duration): Double

Returns a number that is the ratio of this and other duration values.

© 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/-duration/div.html