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


Jämför det aktuella och de specificerade objekten.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| obj | const SharedPtr\<Object\>\& | Det [TimeSpan](../)-objektet att jämföra det aktuella objektet med |

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

## Se även

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


Jämför det aktuella och de specificerade objekten.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| value | TimeSpan | Det [TimeSpan](../)-objektet att jämföra det aktuella objektet med |

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

## Se även

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