Topic Path: Symbol Reference > Functions > SetLocalTime Function
ContentsIndexHome
PreviousUpNext
SetLocalTime Function

Updates the time on the local computer.

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

Boolean - True when the local computer date is updated.

SetLocalTime is a Boolean function used to update the time on the local computer system using the native Date/Time 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 .Net and Linux platforms, SetLocalTime performs no operation and always returns False. 

For the Windows platform, SetLocalTime supports Windows NT privileges and adjusts process rights under that OS. SetLocalTime calls the Windows.SetLocalTime function to set the time on the local computer system.

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.