How to Use GetTimeZoneInformation() function?
Answer / Nasrullah Ansari
To use the GetTimeZoneInformation() function in Delphi, follow these steps:
1. Declare a new type for TIME_ZONE_INFORMATION:nTYPE TIME_ZONE_INFORMATION = RECORDn StandardName: string;n StandardDaylightName: string;n TimeZoneKeyName: string;n Bias : longword;n DaylightBias: longword;n SavingsStandardName: string;n SavingsDaylightName: string;nn GreenwichMeanTime : TTime;nn DaylightSavingTime : TTime;nn Active : boolean;n end;
2. Call GetTimeZoneInformation() from the Windows API:nGetTimeZoneInformation(MyTZI, SizeOf(MyTZI));
| Is This Answer Correct ? | 0 Yes | 0 No |
How to Handle exceptions in Delphi?
How to Use Control Characters With Delphi?
1 Answers Crossdomain, Delphi,
What version of Delphi 5 does the Code Explorer come with?
what are Safe Mode and VGA mode?
How to Converta RGB color to a CMYK color?
How to Create NonMaintained or .NDX indexes on dBASE Tables?
How to Creat a flashing icon ?
what are the Differences between Create(Self) and Create(Application)?
How to Get the local internet machine name and IP address?
Why IBM hire you only?
1 Answers Goldman Sachs, IBM, Time,
How to Create a PolyPolygon using a point array?
How to Clear the window in a console application?