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

2014-08-17 Thread luofeiyu
http://www.thefreedictionary.com/time+zone time zone Any of the 24 divisions of the Earth's surface used to determine the local time for any given locality. Each zone is roughly 15° of longitude in width, with local variations for economic and political convenience. Local time is one hour ahead

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

2014-08-17 Thread Chris Angelico
On Mon, Aug 18, 2014 at 2:55 PM, luofeiyu wrote: > http://www.thefreedictionary.com/time+zone > > time zone Any of the 24 divisions of the Earth's surface used to determine > the local time for any given locality. > Each zone is roughly 15° of longitude in width, with local variations for > econom

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

2014-08-17 Thread Ben Finney
luofeiyu writes: > http://www.thefreedictionary.com/time+zone > > time zone Any of the 24 divisions of the Earth's surface used to > determine the local time for any given locality. Thanks, it's good to know there are dictionaries out there with incorrect definitions. That one is terrible and un

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

2014-08-18 Thread luofeiyu
|I found that it is a concept LMT local mean time can express my meaning. import pytz,datetime tz1 = pytz.timezone('Asia/Shanghai') tz1 str(tz1) 'Asia/Shanghai' | ||tz2 = pytz.timezone('Asia/Urumqi')| tz2 the time difference between shanghai and Urumqi is about 2 hours in the form of LMT.

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

2014-08-18 Thread Joel Goldstick
On Mon, Aug 18, 2014 at 9:12 AM, luofeiyu 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

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

2014-08-18 Thread Denis McMahon
On Mon, 18 Aug 2014 12:55:59 +0800, luofeiyu wrote: > http://www.thefreedictionary.com/time+zone > > time zone Any of the 24 divisions of the Earth's surface used to > determine the local time for any given locality. > Each zone is roughly 15° of longitude in width, with local variations > for ec

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

2014-08-18 Thread Rustom Mody
On Monday, August 18, 2014 7:21:53 PM UTC+5:30, Joel Goldstick wrote: > On Mon, Aug 18, 2014 at 9:12 AM, luofeiyu 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

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

2014-08-18 Thread Ian Kelly
On Mon, Aug 18, 2014 at 7:12 AM, luofeiyu wrote: > > I found that it is a concept LMT local mean time can express my meaning. > > import pytz,datetime > tz1 = pytz.timezone('Asia/Shanghai') > tz1 > > >>> str(tz1) > 'Asia/Shanghai' > > tz2 = pytz.timezone('Asia/Urumqi') > tz2 > > > the time diffe

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

2014-08-18 Thread Ian Kelly
On Mon, Aug 18, 2014 at 11:53 AM, Ian Kelly wrote: > On Mon, Aug 18, 2014 at 7:12 AM, luofeiyu wrote: >> >> I found that it is a concept LMT local mean time can express my meaning. >> >> import pytz,datetime >> tz1 = pytz.timezone('Asia/Shanghai') >> tz1 >> >> >>> str(tz1) >> 'Asia/Shanghai' >>

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

2014-08-18 Thread Chris “Kwpolska” Warrick
On 18 August 2014 20:03 "Ian Kelly" wrote: > I also don't know why pytz shows the LMT offset in the repr for those > timezones instead of the current UTC offset. If pytz objects do not have a datetime object attached, they default to the first ever entry, which is usually LMT. This can be problem

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

2014-08-18 Thread pecore
Ian Kelly writes: > Some experimentation determines that the timedelta between Shanghai > and Urumqi Urumqi is on the way for the level of popularity that Piraeus enjoyed in the good ol'days -- per crimini come l'umanita'. MMAX, in IPI+IHC --

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

2014-08-18 Thread pecore
Joel Goldstick writes: > 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! a sundial measures the Apparent Time, where th

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

2014-08-18 Thread Grant Edwards
On 2014-08-18, Ian Kelly wrote: > By working with dates far enough in the past that the modern time zone > rules don't apply. Some experimentation determines that the timedelta > between Shanghai and Urumqi goes from 136 minutes to 120 minutes in > 1928, and then from 120 minutes to 0 minutes in

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

2014-08-18 Thread luofeiyu
My dear friends here, all i want is get ` |LMT+8:06:00` from the output of tz1 `||`| Shall we get back to the main point? If you are interested in it ,please say yes or no ,and how to do that ? -- https://mail.python.org/mailman/listinfo/python-list

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

2014-08-18 Thread luofeiyu
My dear friends here, all i want is get ` LMT+8:06:00` from the output of tz1 `` 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 >>> str(tz1) 'Asia/Shanghai' -- ht

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

2014-08-19 Thread Ian Kelly
On Mon, Aug 18, 2014 at 7:31 PM, luofeiyu wrote: > My dear friends here, all i want is get ` LMT+8:06:00` from the output > of tz1 `` > > 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.ti

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

2014-08-19 Thread Denis McMahon
On Tue, 19 Aug 2014 10:25:58 -0600, Ian Kelly wrote: > We might be able to be more helpful if you would be more clear about > what problem it is that you are trying to solve. Are you trying, for a > given point on the Earth, to determine what nautical time zone it falls > into, or some other "natu

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

2014-08-19 Thread Cameron Simpson
On 19Aug2014 09:31, luofeiyu wrote: My dear friends here, all i want is get ` LMT+8:06:00` from the output of tz1 `` Shall we get back to the main point? That didn't seem to be your main point. You seemed to want to get Asia/Urumqi time by either natural longituide or by Beijing Time,

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

2014-08-19 Thread luofeiyu
>>> tz1 >>> repr(tz1) "" >>> x=repr(tz1) >>> x "" >>> import re >>> re.search("LMT.+\s",x).group() 'LMT+8:06:00 ' i got it ,thinks to all my friends . -- https://mail.python.org/mailman/listinfo/python-list

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

2014-08-19 Thread Ben Finney
luofeiyu writes: > >>> tz1 > > >>> repr(tz1) > "" Yes. Remember that ‘repr’ is for the benefit of the programmer, and there is no promise of what it contains. > >>> x=repr(tz1) > >>> x > "" > >>> import re > >>> re.search("LMT.+\s",x).group() > 'LMT+8:06:00 ' This is wildly fragile. The ‘repr

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

2014-08-20 Thread Akira Li
luofeiyu writes: > http://www.thefreedictionary.com/time+zone > > time zone Any of the 24 divisions of the Earth's surface used to > determine the local time for any given locality. > Each zone is roughly 15° of longitude in width, with local variations > for economic and political convenience. >

How to look up historical time zones by date and location (was: How can I get the timezone time of a location?)

2014-08-17 Thread Ben Finney
luofeiyu writes: > I knew there is a difference between localtime and timezone time. > Localtime: The official time in a local region (adjusted for location > around the Earth); established by law or custom. > Timezone: Any of the 24 regions of the globe (loosely divided by > longitude) throughou