public static operator+(first as Duration, second as Duration) as Duration:
Adds two Duration values.
| Parameter | Description |
|---|---|
first | Left operand. |
second | Right operand. |
A new Duration with the sum of both durations.
import klyn.time d1 = Duration(0, 1) d2 = Duration(0, 0, 30) result = d1 + d2 print(result.totalSeconds) # 5400