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


Jämför två [DateTimeOffset](../)-objekt.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| other | const DateTimeOffset\& | [Object](../../object/) att jämföra. |

### 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**.

## Se även

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


Jämför två [DateTimeOffset](../)-objekt.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| obj | const SharedPtr\<Object\>\& | [Object](../../object/) att jämföra. |

### 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**.

## Se även

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