timezone argument %z and %Z

2014-08-16 Thread luofeiyu
I feel it is necessary to start a new post to go on the discussion about timezone. In my system : win7+ python3.4 . related official material. https://docs.python.org/3.4/library/datetime.html#strftime-and-strptime %z UTC offset in the form +HHMM or -HHMM (empty string if the the object is

Re: timezone argument %z and %Z

2014-08-16 Thread Ben Finney
luofeiyu elearn2...@gmail.com writes: In my system : win7+ python3.4 . AFAIK, Microsoft's Windows OS does not provide correct standard timezones for programmers. They provide only proprietary data, which do not match the international standard time zones. You will need to install timezone

Re: timezone argument %z and %Z

2014-08-16 Thread Ian Kelly
On Sat, Aug 16, 2014 at 12:48 AM, Ben Finney ben+pyt...@benfinney.id.au wrote: problem 1: There are 24 time zone in the world, does any time zone has the time zone name such as EST,CST ? Are there 24 time zone abbreviations in python ?what are other 22 except for EST ,CST ? There

Re: timezone argument %z and %Z

2014-08-16 Thread Chris Angelico
On Sat, Aug 16, 2014 at 6:21 PM, Ian Kelly ian.g.ke...@gmail.com wrote: You should also be aware that the abbreviations do not always uniquely identify a time zone. For example, EST is used in both North America (-0500) and Australia (+1000). It's usually better just to use time zone offsets