## TimeSpan::CompareTo(const SharedPtr\<Object\>\&) const method


Сравнивает текущий и указанный объекты.

```cpp
int System::TimeSpan::CompareTo(const SharedPtr<Object> &obj) const
```


| Параметр | Тип | Описание |
| --- | --- | --- |
| obj | const SharedPtr\<Object\>\& | Объект [TimeSpan](../), с которым сравнивается текущий объект |

### ReturnValue

-1 if the current object represents the interval that is shorter than **value**; 0 if the current object represents the interval that is equal to **value**; 1 if the current object represents the interval that is longer than **value**

## См. также

* Typedef [SharedPtr](../../sharedptr/)
* Class [Object](../../object/)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## TimeSpan::CompareTo(TimeSpan) const method


Сравнивает текущий и указанный объекты.

```cpp
int System::TimeSpan::CompareTo(TimeSpan value) const
```


| Параметр | Тип | Описание |
| --- | --- | --- |
| value | TimeSpan | Объект [TimeSpan](../), с которым сравнивается текущий объект |

### ReturnValue

-1 if the current object represents the interval that is shorter than **value**; 0 if the current object represents the interval that is equal to **value**; 1 if the current object represents the interval that is longer than **value**

## См. также

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