Connecting Tech Pros Worldwide Help | Site Map

Retrieving Day Light Saving Time Period Using Windows libraries

Newbie
 
Join Date: Sep 2008
Posts: 18
#1: Oct 12 '09
Hi All,

I am facing quite a unique problem here with DayLight saving time.
I know Windows handles Daylight saving time internally to sync PC Clock .

But now i need to pass the Information of Daylight Saving period i.e, From When To When it is applied .
For e.g. In US it is From 2nd Sunday in March to 1st Sunday in November.

I need to get this period for all timeZones in my .Net application using Windows API.

Can anyone help me to retrieve this time period from Windows.....

Any help will be appreciated
Thanks and regards,
Eric
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,148
#2: Oct 13 '09

re: Retrieving Day Light Saving Time Period Using Windows libraries


Its all in some big table in the registry. I cannot remember where, but if you find the right keys, you can just read it in.
TZEdit is a program from microsoft to set timezone information, it might say which keys to use somewhere in there
Reply

Tags
windows timezone