Thema: Delphi utctolocaltime...

Einzelnen Beitrag anzeigen

sveta

Registriert seit: 11. Apr 2006
34 Beiträge
 
#3

Re: utctolocaltime...

  Alt 20. Sep 2006, 09:13
Danke Marabu

ich kenne mich pointern nicht so gut aus.. ich hab es versucht
Delphi-Quellcode:
  function myUTCToLocalTime(utctime: TDateTime): TDatetime;
  var
    TZ: TTimeZoneInformation;
    ST,outST : TSystemtime;

  begin
    GetTimeZoneInformation (TZ);
    GetSystemTime(ST);
    SystemTimeToTzSpecificLocalTime(TZ,ST,outST);
    Result:= EncodeDate(outst.wYear,outst.wMonth,outst.wDay)+EncodeTime(outst.wHour,outst.wMinute,outst.wSecond,outst.wMilliseconds);
  end; { myUTCToLocalTime }
ich mache etwas falsch
Incompatible types:ptimezoneinformation and _TIME_ZONE_INFORMATION
  Mit Zitat antworten Zitat