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

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