d32coder
asked on
System Time
I'm writing a network app and I need to sychronize the system times on all the nodes with the server.
All I really need is the source code to set the system Date/Time locally.
Don
All I really need is the source code to set the system Date/Time locally.
Don
ASKER
Not quite. I want to SET the time.
Don
Don
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
Don
Don
procedure TForm1.Button1Click(Sender
begin
label1.caption:=GetsystemT
end;
function GetSystemTimeUTC : String;
var
stSystemTime : TSystemTime;
begin
Windows.GetSystemTime( stSystemTime );
Result := DateTimeToStr( SystemTimeToDateTime( stSystemTime ) );
end;