## TimeSpan::operator-() const method


Returns a new instance of [TimeSpan](../) object that represents negated value represented by the current [TimeSpan](../) object.

```cpp
TimeSpan System::TimeSpan::operator-() const
```

## See Also

* Class [TimeSpan](../)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.TeX for C++](../../../)
## TimeSpan::operator-(TimeSpan) const method


Returns a new instance of [TimeSpan](../) class that represents a time interval which is the result of subtraction of the time interval represented by the specified object from the time interval represented by the current object.

```cpp
TimeSpan System::TimeSpan::operator-(TimeSpan value) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | TimeSpan | The [TimeSpan](../) object that represents the time interval to subtract |

### ReturnValue

A new instance of [TimeSpan](../) class that represents a time interval which is the result of subtraction of the time interval represented by the specified object from the time interval represented by the current object.

## See Also

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