Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76628
| Date | 2014-08-20 09:31 +0800 |
|---|---|
| From | luofeiyu <elearn2014@gmail.com> |
| Subject | Re: How to look up historical time zones by date and location |
| References | <53F2A8E2.9000804@gmail.com> <20140819231436.GA77365@cskk.homeip.net> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.13184.1408498331.18130.python-list@python.org> (permalink) |
>>> 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
Re: How to look up historical time zones by date and location luofeiyu <elearn2014@gmail.com> - 2014-08-20 09:31 +0800
csiph-web