Getting current time zone in Python in tzinfo format not implemented
John Nagle
nagle at animats.com
Sun Nov 28 13:40:14 EST 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!":
http://regebro.wordpress.com/2008/05/10/python-and-time-zones-part-2-the-beast-returns/
"Time zones in Python – welcome to hell":
http://blog.mfabrik.com/2008/06/30/relativity-of-time-shortcomings-in-python-datetime-and-workaround/
(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