Internet Direct (Indy) Version 9.0.1 Beta
SetLocalTime
Updates the time on the local computer.

function SetLocalTime(Value: TDateTime): boolean;
Parameters
Value: TDateTime
The date and time to use for the local computer.

Returns
Boolean - True when the local computer date is updated.

Description
SetLocalTime is a Boolean function used to update the time on the local computer system using the TDateTime value in Value.

SetLocalTime is used by Indy time synchronization components like TIdSNTP and TIdTime.

SetLocalTime encapsulates the platform-specific procedures and functions used to update the time on the local computer system. For the Windows platform, the procedure used is Windows.SetLocalTime. On the Linux platform, SetLocalTime performs no operation and always returns False.