times

Common
JVM
JS
Native
1.3
@ExperimentalTime operator fun Int.times(
    duration: Duration
): Duration

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

Common
JVM
JS
Native
1.3
@ExperimentalTime operator fun Double.times(
    duration: Duration
): Duration

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

Exceptions

IllegalArgumentException - if the operation results in a NaN value.