Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76628 > unrolled thread
| Started by | luofeiyu <elearn2014@gmail.com> |
|---|---|
| First post | 2014-08-20 09:31 +0800 |
| Last post | 2014-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.
Re: How to look up historical time zones by date and location luofeiyu <elearn2014@gmail.com> - 2014-08-20 09:31 +0800
| From | luofeiyu <elearn2014@gmail.com> |
|---|---|
| Date | 2014-08-20 09:31 +0800 |
| Subject | Re: 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 .
Back to top | Article view | comp.lang.python
csiph-web