Getting current time zone in Python in tzinfo format not implemented

J

John Nagle

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/...ortcomings-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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top