Why didn't you say so in the first place?

You can use "GetTimeZoneInformation()" from the Windows-unit to get that.

========================================================

procedure TForm1.Button1Click(Sender: TObject);
Var
  ZoneInfo : TTimeZoneInformation;
begin
  GetTimeZoneInformation(ZoneInfo);
  ShowMessage(Format('Bias with UTC = %d minutes', [ZoneInfo.Bias]));
end;

========================================================

Greetz,

Peter.
________________________________________
From: delphi-en@yahoogroups.com [mailto:delphi...@yahoogroups.com] On Behalf
Of emmanuellamy
Sent: vrijdag 6 augustus 2010 14:18
To: delphi-en@yahoogroups.com
Subject: [delphi-en] Re: Converting local to UTC time

  
Thank you, Ray. But my problem is in extracting the local machine timezone
rather than computing the UTC time or local time.

Emmanuel

Reply via email to