## DateTime::Add method


返回一个新的 [DateTime](../) 类实例，表示将指定的时间跨度添加到当前对象所表示的日期和时间后得到的日期时间值。

```cpp
DateTime System::DateTime::Add(TimeSpan value) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | TimeSpan | 要添加的时间间隔 |

### ReturnValue

一个新的 [DateTime](../) 类实例，表示将 **tm** 时间跨度添加到当前对象所表示的日期和时间后得到的日期时间值。

## 另见

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