## DateTimeOffset::CompareTo(const DateTimeOffset\&) const method


두 [DateTimeOffset](../) 객체를 비교합니다.

```cpp
int System::DateTimeOffset::CompareTo(const DateTimeOffset &other) const
```


| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| other | const DateTimeOffset\& | 비교할 [Object](../../object/). |

### ReturnValue

-1 - if current object is earlier than **other**, 1 - if current object is later than **other**, 0 - if current object is equal to **other**.

## 또 보기

* Class [DateTimeOffset](../)
* Class [DateTimeOffset](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## DateTimeOffset::CompareTo(const SharedPtr\<Object\>\&) const method


두 [DateTimeOffset](../) 객체를 비교합니다.

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


| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| obj | const SharedPtr\<Object\>\& | 비교할 [Object](../../object/). |

### ReturnValue

-1 - if current object is earlier than **obj**, 1 - if current object is later than **obj**, 0 - if current object is equal to **obj**.

## 또 보기

* Typedef [SharedPtr](../../sharedptr/)
* Class [Object](../../object/)
* Class [DateTimeOffset](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
