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