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.
>
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
>>> 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
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,
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
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
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
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
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
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
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
--
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
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'
>>
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
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
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
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
|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.
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
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
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
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
22 matches
Mail list logo