plus

operator fun plus(other: Duration): Duration(source)

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

Since Kotlin

1.6

Throws

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