How can I get the timezone time of a location?

Ben Finney ben+python at benfinney.id.au
Wed Aug 20 05:24:25 EDT 2014


Ben Finney <ben+python at benfinney.id.au> writes:

> luofeiyu <elearn2014 at gmail.com> writes:
>
> > There is no video in the web when i open it in my firefox.
> The page describing the video also has a link to the hosted site of
> the video, see the “Video origin” field to the right side of that
> page.

The cited video contains good information, but the pace is quite fast
and Lennart's speech might be a little difficult to follow for
non-native speakers.

Here are two weblog articles he wrote on time zones and their problems
<URL:http://regebro.wordpress.com/2007/12/18/python-and-time-zones-fighting-the-beast/>
<URL:http://regebro.wordpress.com/2008/05/10/python-and-time-zones-part-2-the-beast-returns/>.

In brief: Time zones are a still-evolving system to address a thorny
real-world sociopolitical problem; and using Microsoft Windows makes it
significantly worse.

Advice: Use UTC as the canonical timezone (just as you should use
Unicode as the canonical text type) inside your application, and push
other time zones as far to the edge of your application as possible.
Avoid MS Windows entirely.

-- 
 \     “There is more to life than increasing its speed.” —Mohandas K. |
  `\                                                            Gandhi |
_o__)                                                                  |
Ben Finney




More information about the Python-list mailing list