Getting current time zone in Python in tzinfo format not implemented

John Nagle nagle at
Sun Nov 28 19:40:14 CET 2010

    Getting the local time zone in Python is rather difficult.

As of 2008, two articles indicate that the current mechanisms
totally suck:

"Python and time zones part 2: The beast returns!":

"Time zones in Python – welcome to hell":

(Despite that article, there is a straightforward way to get that
information in Windows: "GetDynamicTimeZoneInformation".)

Did something useful ever get done about that?  This
ought to be in the "time" module for each platform.

				John Nagle

More information about the Python-list mailing list