times

Common
JVM
JS
Native
1.0
operator fun times(scale: Int): Duration
(source)

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

Exceptions

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

Common
JVM
JS
Native
1.0
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.

Exceptions

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