## TimeSpan::Equals(const SharedPtr\<Object\>\&) const method


Determines if the time interval represented by the current object is equal to the time interval represented by the specified object.

```cpp
bool System::TimeSpan::Equals(const SharedPtr<Object> &obj) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| obj | const SharedPtr\<Object\>\& | The [TimeSpan](../) object to compare the current object with |

### ReturnValue

True if the current object and the specified object represent the same time interval, otherwise - false

## See Also

* Typedef [SharedPtr](../../sharedptr/)
* Class [Object](../../object/)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## TimeSpan::Equals(TimeSpan) const method


Determines if the time interval represented by the current object is equal to the time interval represented by the specified object.

```cpp
bool System::TimeSpan::Equals(TimeSpan value) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | TimeSpan | The [TimeSpan](../) object to compare the current object with |

### ReturnValue

True if the current object and the specified object represent the same time interval, otherwise - false

## See Also

* Class [TimeSpan](../)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## TimeSpan::Equals(TimeSpan, TimeSpan) method


Returns true if the specified objects represent the same time interval, otherwise - false.

```cpp
static constexpr bool System::TimeSpan::Equals(TimeSpan a, TimeSpan b)
```

## See Also

* Class [TimeSpan](../)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
