
## Subtract (1 of 2) {#subtract_1}

Subtracts specified double value from this duration instance.

**Returns:** New duration object that represents the value of this instance minus the specified duration value.

```cpp
Subtract(double val)
```

| Parameter | Description |
| --- | --- |
| val | specified double value to subtract from this instance. |

---

## Subtract (2 of 2) {#subtract_2}

Subtracts specified duration from this duration instance.

**Returns:** New duration object that represents the value of this instance minus the specified duration value.

```cpp
Subtract(Duration d)
```

| Parameter | Description |
| --- | --- |
| d | the specified Duration instance to subtract from this instance. |

