times

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

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

Throws

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