## TimeSpan::Compare method


تقارن كائنين من نوع [TimeSpan](../).

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


| Parameter | Type | الوصف |
| --- | --- | --- |
| t1 | TimeSpan | المقارنة الأولى |
| t2 | TimeSpan | المقارنة الثانية |

### ReturnValue

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

## انظر أيضًا

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