## Calendar::AddYears method


يضيف سنوات إلى نقطة الزمن.

```cpp
virtual DateTime System::Globalization::Calendar::AddYears(DateTime time, int years) const
```


| معامل | نوع | الوصف |
| --- | --- | --- |
| الوقت | DateTime | قيمة النقطة الزمنية الأصلية. |
| سنوات | int | عدد السنوات للإضافة. |

### ReturnValue

النقطة الزمنية بعد إتمام الحساب.

## انظر أيضًا

* Class [DateTime](../../../system/datetime/)
* Class [Calendar](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
