Internet Direct (Indy) Version 9.0.1 Beta
TIdDateTimeStamp.SetFromTTimeStamp
Initializes the Indy timestamp from a TTimeStamp value.

procedure SetFromTTimeStamp(ATimeStamp: TTimeStamp);
Parameters
ATimeStamp: TTimeStamp
Native timestamp value to assign the Indy timestamp.

Description
SetFromTTimeStamp is a procedure used to assign the native TTimeStamp value in ATimeStamp to the Indy timestamp. SetFromTTimeStamp calls SetYear, SetDay, and SetSecond to initialize the Indy timestamp to a value that corresponds to the date and time value 1/1/1 00:00:00. SetFromTTimeStamp then calls SetMillisecond using the time portion of ATimeStamp, and SetDay using the date portion of ATimeStamp.