## TimeSpan::Compare method


Compara dos objetos [TimeSpan](../).

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| t1 | TimeSpan | El primer comparando |
| t2 | TimeSpan | El segundo comparando |

### ReturnValue

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

## Ver también

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