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


Groups > comp.lang.python > #76538

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.albasani.net!weretis.net!feeder4.news.weretis.net!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 UNSURE 0.243
X-Spam-Level **
X-Spam-Evidence '*H*': 0.58; '*S*': 0.06; 'output': 0.05; 'subject:How': 0.10; '>>>': 0.22; 'import': 0.22; 'header:User- Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'skip:p 30': 0.29; "skip:' 10": 0.31; 'subject:time': 0.33; 'received:google.com': 0.35; 'received:10': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'back': 0.62; 'dear': 0.65; 'charset:windows-1252': 0.65; 'yes': 0.68; 'friends': 0.81; 'subject:location': 0.84; ',please': 0.91
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:content-transfer-encoding; bh=PTgErHoLk/PfsTsa9/dKvw7h2DSGvOdL0i5BvEN86z4=; b=qfdiLYp5mSU0s5G342L2vfGC72vGe/ELevTb9zAE5ocqnociMmx/e7uL5JA+PjSiBE +VSTnw4nJ7vLe5nRbnXQTxOQn28SoImXKs63tSroqa8PlmtLriUX3nMyclEpZXWmUM2T HFFah9K3NLksuBuBNbKOxCqkvfnemukCkOX702zMHQ58fM14Xz/W960TJF0JfoX5ErTF OpH+GFOH3oIr1e0hKBlD//4S3e1YjNpc/O8BC8Vfmec5rXo1u7ObZNhWk5lXzJv1OeAd FVS8vD2trdHxv2wcvkgUrKo1UzBico6EuT8jJFwvyi+cN54TPE/3877w6snY10ELC7xe BK2w==
X-Received by 10.70.37.227 with SMTP id b3mr16357330pdk.147.1408411893193; Mon, 18 Aug 2014 18:31:33 -0700 (PDT)
Date Tue, 19 Aug 2014 09:31:14 +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 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> <CAPTjJmrxAox15ZKSNR5HtbFJSBukK7GwKH91itLid8cNE8Nvsg@mail.gmail.com> <53F1FBCC.6060406@gmail.com> <mailman.13107.1408384942.18130.python-list@python.org> <lstqar$pg5$2@reader1.panix.com> <53F2A197.3090401@gmail.com>
In-Reply-To <53F2A197.3090401@gmail.com>
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Mailman-Approved-At Tue, 19 Aug 2014 08:10:40 +0200
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.13130.1408428641.18130.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1408428641 news.xs4all.nl 2880 [2001:888:2000:d::a6]:38842
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:76538

Show key headers only | View raw


My dear  friends here, all i want is get   ` LMT+8:06:00`  from the 
output of tz1  `<DstTzInfo 'Asia/Shanghai' LMT+8:06:00 STD>`

Shall we get back to the main point?

If you are interested in it ,please say yes or no ,and how to do that ?


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

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


Thread

Re: How to look up historical time zones by date and location Ian Kelly <ian.g.kelly@gmail.com> - 2014-08-18 11:53 -0600
  Re: How to look up historical time zones by date and location pecore@pascolo.net - 2014-08-18 21:47 +0200
  Re: How to look up historical time zones by date and location Grant Edwards <invalid@invalid.invalid> - 2014-08-18 21:14 +0000
    Re: How to look up historical time zones by date and location luofeiyu <elearn2014@gmail.com> - 2014-08-19 09:31 +0800
    Re: How to look up historical time zones by date and location luofeiyu <elearn2014@gmail.com> - 2014-08-19 09:00 +0800
    Re: How to look up historical time zones by date and location Ian Kelly <ian.g.kelly@gmail.com> - 2014-08-19 10:25 -0600
      Re: How to look up historical time zones by date and location Denis McMahon <denismfmcmahon@gmail.com> - 2014-08-19 17:44 +0000

csiph-web