plus

Common
JVM
JS
Native
1.0
operator fun plus(other: Duration): Duration
(source)

Returns a duration whose value is the sum of this and other duration values.

Exceptions

IllegalArgumentException - if the operation results in an undefined value for the given arguments, e.g. when adding infinite durations of different sign.