Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76628

Re: How to look up historical time zones by date and location

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <elearn2014@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.123
X-Spam-Level *
X-Spam-Evidence '*H*': 0.77; '*S*': 0.02; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; '>>>': 0.22; 'import': 0.22; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'subject:time': 0.33; 'received:google.com': 0.35; 'received:10': 0.37; 'message-id:@gmail.com': 0.38; 'charset:windows-1252': 0.65; 'skip:r 30': 0.69; 'friends': 0.81; '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:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=CfoFzxoc8uN95yCzNhzHBkQktjLIL1AhpNqOTr4leJc=; b=A/RQT2M1rCpJzz5LqKJroy2AyRQMnINJ1H59cVYwVv9VFx05dAdwO9qwwyk+v7vDIx y9kxVS6o0JMZFNS/NYc4PBRhU1VlAsdRCtIcZztlHdME1T74op1bS3Cmm/gKu0UNb7ut 6a5hG7ZQQ06LIyefd17u3w31+nuUvegp7OxDusvdgYJwK0ZFxqWRufFESS1hhpgMbLah Ifa4k2WOYNlzKQKVCk9weELeyNLET376wNdSQGoaTCVmCR2hNn4v3HV8GlcYoeaKvKSC 7FEAkkyLaAYlgc4d8CoH31ViouuP1y4Jp7y8Mc8iMvJDIVCfVfQfhEUX6RLQwUo+tdU6 EnjQ==
X-Received by 10.68.250.3 with SMTP id yy3mr49106577pbc.56.1408498322015; Tue, 19 Aug 2014 18:32:02 -0700 (PDT)
Date Wed, 20 Aug 2014 09:31:40 +0800
From luofeiyu <elearn2014@gmail.com>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version 1.0
To Cameron Simpson <cs@zip.com.au>
Subject Re: How to look up historical time zones by date and location
References <53F2A8E2.9000804@gmail.com> <20140819231436.GA77365@cskk.homeip.net>
In-Reply-To <20140819231436.GA77365@cskk.homeip.net>
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.13184.1408498331.18130.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1408498331 news.xs4all.nl 2852 [2001:888:2000:d::a6]:38869
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:76628

Show key headers only | View raw


 >>> tz1
<DstTzInfo 'Asia/Shanghai' LMT+8:06:00 STD>
 >>> repr(tz1)
"<DstTzInfo 'Asia/Shanghai' LMT+8:06:00 STD>"
 >>> x=repr(tz1)
 >>> x
"<DstTzInfo 'Asia/Shanghai' LMT+8:06:00 STD>"
 >>> import re
 >>> re.search("LMT.+\s",x).group()
'LMT+8:06:00 '


i got it ,thinks to all my friends .

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: How to look up historical time zones by date and location luofeiyu <elearn2014@gmail.com> - 2014-08-20 09:31 +0800

csiph-web