klyn.time.Duration.operator+
method
public static operator+(first as Duration, second as Duration) as Duration:
Description
Adds two Duration values.
import klyn.time

d1 = Duration(0, 1)
d2 = Duration(0, 0, 30)
result = d1 + d2
print(result.totalSeconds)  # 5400
Parameters
  • first Left operand.
  • second Right operand.
Returns
A new Duration with the sum of both durations. ```klyn import klyn.time d1 = Duration(0, 1) d2 = Duration(0, 0, 30) result = d1 + d2 print(result.totalSeconds) # 5400 ```