How to look up historical time zones by date and location

Akira Li 4kir4.1i at gmail.com
Wed Aug 20 13:01:08 EDT 2014


luofeiyu <elearn2014 at gmail.com> writes:

> http://www.thefreedictionary.com/time+zone
>
> time zone Any of the 24 divisions of the Earth's surface used to
> determine the local time for any given locality.
> Each zone is roughly 15° of longitude in width, with local variations
> for economic and political convenience.
> Local time is one hour ahead for each time zone as one travels east
> and one hour behind for each time zone as one travels west.
>
> Urumqi  's localtime is beijin time ,it is decided  by law .
> Urumqi  's timezone is east 6 ,it is decided by geography.
>
> There is only one localtime in all over the chian,beijin time,but
> there are 5  timezone time in china .
>

In programming, a different timezone defintion is usually used [1] (pytz
library provides access to the timezone database in Python). There are
much more than 24 timezones (e.g., look at pytz.common_timezones) and a
UTC offset used in a place may be unrelated to its longitude. A timezone
is more a political entity than a geographical.

[1] http://www.iana.org/time-zones

For example, here's a shapefile for China [2].  It shows the shape of
Asia/Chongqing, Asia/Harbin, Asia/Kashgar, Asia/Shanghai, Asia/Urumqi
timezones on a map.

[2] http://efele.net/maps/tz/china/

Different timezones may have the same UTC offset at some point. UTC
offset for the same timezone may be different at different times e.g.,
due to DST transitions.

There are multiple ways to get a timezone name from location [3].

[3]
http://stackoverflow.com/questions/16505501/get-timezone-from-city-in-python-django


--
Akira






More information about the Python-list mailing list