times

operator fun times(scale: Int): Duration(source)

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

Since Kotlin

1.6

Throws

if the operation results in an undefined value for the given arguments, e.g. when multiplying an infinite duration by zero.


operator fun times(scale: Double): Duration(source)

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

The operation may involve rounding when the result cannot be represented exactly with a Double number.

Since Kotlin

1.6

Throws

if the operation results in an undefined value for the given arguments, e.g. when multiplying an infinite duration by zero.