klyn.time.Duration.operator-
method
public static operator-(first as Duration, second as Duration) as Duration:
DescriptionSubtracts two Duration values.
import klyn.time
d1 = Duration(0, 1)
d2 = Duration(0, 0, 30)
result = d1 - d2
print(result.totalSeconds) # 1800
ReturnsA 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 ```