Compares two Duration objects and returns an indication of their relative values.
A 32-bit signed integer that indicates the relative order of the objects being compared.
The return value has these meanings:
| Value | Meaning |
|---|---|
| Less than zero | d1 is less than d2. |
| Zero | d1 is equal to d2. |
| Greater than zero | d1 is greater than d2. |
