times

Common
JVM
JS
Native
1.6
operator fun Int . times ( duration : Duration ) : Duration
(source)

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

Common
JVM
JS
Native
1.6
operator fun Double . times ( duration : Duration ) : Duration
(source)

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

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

Exceptions

IllegalArgumentException - if the operation results in a NaN value.