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


Groups > comp.lang.python > #76628 > unrolled thread

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

Started byluofeiyu <elearn2014@gmail.com>
First post2014-08-20 09:31 +0800
Last post2014-08-20 09:31 +0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

Fromluofeiyu <elearn2014@gmail.com>
Date2014-08-20 09:31 +0800
SubjectRe: How to look up historical time zones by date and location
Message-ID<mailman.13184.1408498331.18130.python-list@python.org>
 >>> 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 .

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web