public static operator<=(first as Duration, second as Duration) as Boolean:
Returns true when the first duration is shorter than or equal to the second one.
| Parameter | Description |
|---|---|
first | Left operand. |
second | Right operand. |
True when first is shorter than or equal to second.
import klyn.time assert Duration(seconds=2.0) <= Duration(seconds=2.0)