Internet Direct (Indy) Version 9.0.1 Beta
TIdDateTimeStamp.SetYear
Updates an Indy timestamp to reflect the specified year.

procedure SetYear(ANumber: Integer);
Parameters
ANumber: Integer
Year number to be assigned to the Indy timestamp.

Description
SetYear is a procedure used to assign the year number in ANumber to the Indy timestamp. When ANumber is 0 (zero), this is considered to be an invalid year number and no update is performed. SetYear will adjust the Indy timestamp using the CheckLeapYear method for the year specified in ANumber.