[This is preliminary documentation and is subject to change.]
Returns a new LocalDateTime representing the current value with the given number of years added.

C# | Visual Basic | Visual C++ |
public LocalDateTime PlusYears( int years )
Public Function PlusYears ( _ years As Integer _ ) As LocalDateTime
public: LocalDateTime PlusYears( int years )

- years (Int32)
- The number of years to add

The current value plus the given number of years.

If the resulting date is invalid, lower fields (typically the day of month) are reduced to find a valid value.
For example, adding one year to February 29th 2012 will return February 28th 2013; subtracting one year from
February 29th 2012 will return February 28th 2011.
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)