Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.116 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.78; '*S*': 0.01; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'used.': 0.09; 'subject:How': 0.10; 'definition.': 0.16; 'finney': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:?)': 0.16; 'header :User-Agent:1': 0.23; 'asking': 0.27; 'header:X-Complaints-To:1': 0.27; 'point': 0.28; 'database,': 0.30; 'url:wiki': 0.31; 'url:wikipedia': 0.31; 'writes:': 0.31; 'founded': 0.33; 'subject:time': 0.33; 'subject:the': 0.34; 'subject: (': 0.35; 'definition': 0.35; 'but': 0.35; 'there': 0.35; 'dates': 0.36; 'east': 0.36; 'url:org': 0.36; 'should': 0.36; 'throughout': 0.37; 'being': 0.38; 'ben': 0.38; 'to:addr:python-list': 0.38; 'expect': 0.39; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'skip:u 10': 0.60; "you're": 0.61; 'day.': 0.63; 'our': 0.64; 'different': 0.65; 'between': 0.67; 'subject:get': 0.81; 'received:125': 0.84; 'subject:location': 0.84; 'divided': 0.91; 'regions': 0.93; 'contrary': 0.95; 'china': 0.97 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: How to look up historical time zones by date and location (was: How can I get the timezone time of a location?) Date: Mon, 18 Aug 2014 13:18:43 +1000 References: <53F14971.3010209@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:XzIhX9vds81RY5wYVEgzg5SQGVQ= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408331943 news.xs4all.nl 2906 [2001:888:2000:d::a6]:36582 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76447 luofeiyu writes: > I knew there is a difference between localtime and timezone time. > Localtime: The official time in a local region (adjusted for location > around the Earth); established by law or custom. > Timezone: Any of the 24 regions of the globe (loosely divided by > longitude) throughout which the same standard time is used. That is not what “time zone” means and you're going to continue being confused if you apply that definition. See the consensus definition at . > For Urumqi,localtime is the time of east 8 timezone, but timezone time > is the time of east 6 timezone. How have you determined these? Who declares “east 6” for Urumqi currently? Why should you expect a timezone database to contain that timezone for current time in that location. By the international time zone database, the time zone for Urumqi is currently “China Standard Time”, UTC+8 hours. That time zone is true for all dates since 1949 to the present day. Are you perhaps asking not about *current* time zone, but time zones at a different point in time? Historical time zones in China have differed . Those historical time zones are in the standard time zone database, but only apply to specific date ranges. -- \ “… no testimony can be admitted which is contrary to reason; | `\ reason is founded on the evidence of our senses.” —Percy Bysshe | _o__) Shelley, _The Necessity of Atheism_, 1811 | Ben Finney