## TimeSpan::Subtract 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::Subtract(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.PUB for C++](../../../)
