## TimeSpan::Compare method


2 つの [TimeSpan](../) オブジェクトを比較します。

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


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| t1 | TimeSpan | 最初の比較対象 |
| t2 | TimeSpan | 2 番目の比較対象 |

### 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++](../../../)
