## DateTime::AddHours method


Returns a new instance of the [DateTime](../) class representing the date and time value which is the sum of the value represented by the current object and the specified number of hours.

```cpp
DateTime System::DateTime::AddHours(double value) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | double | The number of hours to add; the value can be positive or negative |

### ReturnValue

A new instance of the [DateTime](../) class representing the date and time value which is the sum of the value represented by the current object and **value** hours

## See Also

* Class [DateTime](../)
* Class [DateTime](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
