How to Use GetTimeZoneInformation() function?



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

Post New Answer

More Delphi Interview Questions

How to Handle exceptions in Delphi?

1 Answers  


How to Use Control Characters With Delphi?

1 Answers   Crossdomain, Delphi,


What version of Delphi 5 does the Code Explorer come with?

1 Answers  


what are Safe Mode and VGA mode?

1 Answers  


How to Converta RGB color to a CMYK color?

1 Answers  


How to Create NonMaintained or .NDX indexes on dBASE Tables?

1 Answers  


How to Creat a flashing icon ?

1 Answers  


what are the Differences between Create(Self) and Create(Application)?

1 Answers  


How to Get the local internet machine name and IP address?

1 Answers  


Why IBM hire you only?

1 Answers   Goldman Sachs, IBM, Time,


How to Create a PolyPolygon using a point array?

1 Answers  


How to Clear the window in a console application?

1 Answers  


Categories