Internet Direct (Indy) Version 9.0.1 Beta
TIdDateTimeStamp.AddYears
Adds a number of years to the timestamp.

procedure AddYears(ANumber: Cardinal);
Parameters
ANumber: Cardinal
Number of years to be added.

Description
AddYears is a procedure that adds the number of years specified in ANumber to the date/time. After adding the specified number of years, IsLeapYear will be updated for the new Year value.