Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin2!goblin.stu.neva.ru!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!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.078 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'output': 0.05; 'skip:` 10': 0.07; 'subject:How': 0.10; '>>>': 0.22; 'import': 0.22; 'header:User-Agent:1': 0.23; '>>>': 0.24; 'header:In- Reply-To:1': 0.27; 'skip:p 30': 0.29; "skip:' 10": 0.31; 'that.': 0.31; 'subject:time': 0.33; 'received:google.com': 0.35; 'received:10': 0.37; 'message-id:@gmail.com': 0.38; 'skip:& 10': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'hours': 0.66; 'between': 0.67; 'shanghai': 0.84; 'subject:location': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=Pwgr+xvAcl+m5t3UTe71U34/+WIUgiE7du8dBjWbi2c=; b=WuaxjxfuprwMdaIaO2KeEYhPByuIr7TWLQNS7VyIkwH/2n5ACi/bzrbc9Rze77KruU AmH3LeP+Rvn/sZ2oWRKCXeJ3aAKh8tF1HT/3ud07rwgGSisWm/UpGIaLABLyXjnSicMX QCz9KSonF9h3wqHO3XUP7jb8770cRByy/TSTvRxn/ANb2861XTPg+zlz8HMIVHjzdih5 F9Z8YNCqSGadwCq+xUVgMXQsHz8O3yxKDsbRc0aLSJe1uG5GDuNZcwl0wQaMQOmJOnyx xdm0PIjAzkgY6UCioT1W1aQ4II70DR/CECL1smF7zTi5mdvzX1u1IiDPztRqpKF1GN4x 5LZA== X-Received: by 10.66.66.166 with SMTP id g6mr34805221pat.108.1408367584212; Mon, 18 Aug 2014 06:13:04 -0700 (PDT) Date: Mon, 18 Aug 2014 21:12:44 +0800 From: luofeiyu User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: How to look up historical time zones by date and location References: <53F14971.3010209@gmail.com> <85mwb24h9o.fsf@benfinney.id.au> <53F1875F.4020109@gmail.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------000404080207080305040203" 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: 57 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408367592 news.xs4all.nl 2907 [2001:888:2000:d::a6]:54799 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76473 This is a multi-part message in MIME format. --------------000404080207080305040203 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit |I found that it is a concept LMT local mean time can express my meaning. import pytz,datetime tz1 = pytz.timezone('Asia/Shanghai') tz1 >>> str(tz1) 'Asia/Shanghai' | ||tz2 = pytz.timezone('Asia/Urumqi')| tz2 the time difference between shanghai and Urumqi is about 2 hours in the form of LMT. now ,how can i get the output of|`|LMT+8:06:00|` in|| str(tz1) or str(tz2) can not do that. --------------000404080207080305040203 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
I found that it is a concept LMT local mean time can express my meaning.

import pytz,datetime
tz1 = pytz.timezone('Asia/Shanghai')
tz1
<DstTzInfo 'Asia/Shanghai' LMT+8:06:00 STD>
>>> str(tz1)
'Asia/Shanghai'

tz2 = pytz.timezone('Asia/Urumqi')
tz2
<DstTzInfo 'Asia/Urumqi' LMT+5:50:00 STD>

the time difference between shanghai and Urumqi is about 2 hours in the form of LMT.

now ,how can i get the output of `LMT+8:06:00` in <DstTzInfo 'Asia/Shanghai' LMT+8:06:00 STD>

str(tz1) or str(tz2) can not do that.
--------------000404080207080305040203--