[Dev] Python timezone implementation using Windows registry

Jeffrey Harris jeffrey at skyhouseconsulting.com
Tue Nov 30 15:56:09 PST 2004


Hi Folks,

In my ongoing pursuit of cross platform Python timezone implementations,
Bear pointed me at the Windows 2000 and later registry keys that store
Windows' timezone information.

Somehow having the actual registry keys in my head pushed me past my
aversion to having anything to do with the Windows registry and I spent
a day writing a datetime.tzinfo implementation that reads those registry
keys to generate time zones on Windows.  I've uploaded it to
<http://vobject.skyhouseconsulting.com/win32tz.py>, I'm going to see if
Gustavo Niemeyer is interested in integrating this code with dateutil.tz.

I'd be interested in having people who are familiar with time zones in
Python trying out my code and making sure it works the way you expect it to.

Sincerely,
Jeffrey




More information about the Dev mailing list