## TimeSpan::Compare method


Confronta due oggetti [TimeSpan](../).

```cpp
static constexpr int System::TimeSpan::Compare(TimeSpan t1, TimeSpan t2)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| t1 | TimeSpan | Il primo comparando |
| t2 | TimeSpan | Il secondo comparando |

### ReturnValue

-1 if **t1** is shorter than **t2**; 0 if **t1** is equal to **t2**; 1 if **t1** is longer than **t2**

## Vedi anche

* Class [TimeSpan](../)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
