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


Groups > comp.lang.python > #76477

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.179
X-Spam-Level *
X-Spam-Evidence '*H*': 0.65; '*S*': 0.01; 'output': 0.05; 'skip:` 10': 0.07; 'differently.': 0.09; 'subject:How': 0.10; 'cc:addr :python-list': 0.11; 'mostly': 0.14; 'astronomical': 0.16; 'clocks': 0.16; 'did.': 0.16; 'noon': 0.16; 'railroad': 0.16; 'wrote:': 0.18; 'import': 0.22; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'case.': 0.24; 'text.': 0.24; 'mon,': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'switch': 0.26; 'meeting': 0.26; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'skip:p 30': 0.29; 'am,': 0.29; 'topic': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; "skip:' 10": 0.31; 'that.': 0.31; '>>>>': 0.31; 'with,': 0.31; 'url:python': 0.33; 'everyone': 0.33; 'plain': 0.33; 'subject:time': 0.33; 'common': 0.35; 'possible.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'url:listinfo': 0.36; "didn't": 0.36; 'url:org': 0.36; 'half': 0.37; 'changed': 0.39; 'skip:p 20': 0.39; 'url:mail': 0.40; 'read': 0.60; 'trading': 0.61; 'high': 0.63; 'places': 0.64; 'different': 0.65; 'town': 0.65; 'to:addr:gmail.com': 0.65; 'within': 0.65; 'hours': 0.66; 'between': 0.67; 'usa': 0.69; 'hour': 0.70; 'business': 0.70; 'savings': 0.81; 'partners.': 0.84; 'shanghai': 0.84; 'step,': 0.84; 'subject:location': 0.84; 'summer,': 0.84; 'village': 0.84; 'joel': 0.91; 'reasons,': 0.91; 'assured': 0.93; 'regions': 0.93; 'political': 0.97
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=S1SatjkhtY+Pf/tx6ZJD1wMrL+fWAxIKt8yGQ8DQJO8=; b=I3Y4ocpQZmqp9nzmHGGhOrpxUbk7ORJG4Gy5+giD+VxcIvMSd6Vu6S+84nn1nNzeen WH4KYYVh5JqK0jAHxu2/mk4xHpzxP9NovhfYjMtjr6Z8ZOUT+wLvcvDvQRtXKOWXu43W lAFF50YEWzgf3D3Jr4jy9kpwiGFgBUTG6o70V/QpO7I8OmQVJn++lWkCU9hgrkfbXFrL qXvsLC5gunlgyslRYz3HqxkWQzhbO8eTLxVW+v6jpxHeAkSI72F1G48ymwCs17xShZd5 LjXUkaA0fi5MuLKt0NpVxnOV3RHQ+973SfdR09G0FJUXSxHiVPUNIDn2rWMU7v2+q+Xj TQDw==
MIME-Version 1.0
X-Received by 10.194.110.135 with SMTP id ia7mr2814951wjb.128.1408369913921; Mon, 18 Aug 2014 06:51:53 -0700 (PDT)
In-Reply-To <53F1FBCC.6060406@gmail.com>
References <53F14971.3010209@gmail.com> <85mwb24h9o.fsf@benfinney.id.au> <53F1875F.4020109@gmail.com> <CAPTjJmrxAox15ZKSNR5HtbFJSBukK7GwKH91itLid8cNE8Nvsg@mail.gmail.com> <53F1FBCC.6060406@gmail.com>
Date Mon, 18 Aug 2014 09:51:53 -0400
Subject Re: How to look up historical time zones by date and location
From Joel Goldstick <joel.goldstick@gmail.com>
To luofeiyu <elearn2014@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc "python-list@python.org" <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.13099.1408369922.18130.python-list@python.org> (permalink)
Lines 56
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1408369922 news.xs4all.nl 2839 [2001:888:2000:d::a6]:40856
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:76477

Show key headers only | View raw


On Mon, Aug 18, 2014 at 9:12 AM, luofeiyu <elearn2014@gmail.com> wrote:
> I found that it is a concept LMT local mean time can express my meaning.

Local Mean Time is time based on the actually astronomical position of
the sun.  It is defined as 12 noon when the sun is at its high point,
directly south in the sky.  This is the time you get when you read a
sundial!
So each town or village set their clocks differently.  That all
changed with the railroad industry.  Once trains began traveling, time
zones were invented so that everyone knew exactly what time it was in
order to keep trains from meeting on the same tracks and colliding.
Trains need time schedules.  Time zones make this possible.

Since the advent of time zones, you can be pretty well assured that
the your LMT will be within a half hour or so (east or west) of the
Time zone your location is assigned.  But time zones are drawn for
political reasons, and so that may not be precisely the case.  In
Indiana, USA there are (or were) several regions in different time
zones.   In the summer, they would change again, but not in step, so
some places didn't switch to 'daylight savings time', and some did.
Again, this had mostly to do with who the local business did business
with, to keep time common for common trading partners.

Off topic --  please remember to use plain text.


>
> import pytz,datetime
> tz1 = pytz.timezone('Asia/Shanghai')
> tz1
> <DstTzInfo 'Asia/Shanghai' LMT+8:06:00 STD>
>>>> str(tz1)
> 'Asia/Shanghai'
>
> tz2 = pytz.timezone('Asia/Urumqi')
> tz2
> <DstTzInfo 'Asia/Urumqi' LMT+5:50:00 STD>
>
> the time difference between shanghai and Urumqi is about 2 hours in the form
> of LMT.
>
> now ,how can i get the output of `LMT+8:06:00` in <DstTzInfo 'Asia/Shanghai'
> LMT+8:06:00 STD>
>
> str(tz1) or str(tz2) can not do that.
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>



-- 
Joel Goldstick
http://joelgoldstick.com

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


Thread

Re: How to look up historical time zones by date and location Joel Goldstick <joel.goldstick@gmail.com> - 2014-08-18 09:51 -0400
  Re: How to look up historical time zones by date and location Rustom Mody <rustompmody@gmail.com> - 2014-08-18 08:41 -0700
  Re: How to look up historical time zones by date and location pecore@pascolo.net - 2014-08-18 22:31 +0200

csiph-web