System::Globalization::Calendar::AddMonths 方法
Calendar::AddMonths method
向时间点添加月份。
virtual DateTime System::Globalization::Calendar::AddMonths(DateTime time, int months) const
| 参数 | 类型 | 描述 |
|---|---|---|
| 时间 | DateTime | 原始时间点值。 |
| 月份 | int | 要添加的月份数。 |
ReturnValue
计算完成后的时间点。
另见
- Class DateTime
- Class Calendar
- Namespace System::Globalization
- Library Aspose.Font for C++