|
[Home] [Puzzles & Projects] [Delphi Techniques] [Math Topics] [Library] [Utilities] |
|
I needed time zone adjustment information for a current project, so decided to write a separate program to explore what is available. Since we identify our time zone to Windows at installation time and since it politely asks us to confirm when when it changes the clock for daylight savings time, it seems logical that the information would be available. Sure enough Windows API function GetTimeZoneInformation returns a record, TTimeZoneInformation, with everything you would want to know; Specifically:
The function also returns an integer result indicating:
Delphi provides both the hook to the function and the record definition. Here is a simple program that just calls GetTimeZoneInformation and displays the results.
|
[Feedback] [Newsletters (subscribe/view)] [About me]Copyright © 2000-2010, Gary Darby
All rights reserved.
|