## Duration::operator-(const Duration\&) const method


Subtracts one time interval from another.

```cpp
Duration Aspose::Cells::Duration::operator-(const Duration &ts) const
```


## ReturnValue

A new [Duration](../) representing the difference.

## See Also

* Class [Vector](../../vector/)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Duration::operator-() const method


Returns a new [Duration](../) whose value is the negation of the current instance.

```cpp
Duration Aspose::Cells::Duration::operator-() const
```

## See Also

* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
