timezone argument %z and %Z

Ian Kelly ian.g.kelly at gmail.com
Sat Aug 16 04:21:43 EDT 2014


On Sat, Aug 16, 2014 at 12:48 AM, Ben Finney <ben+python at 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 are *many* time zones in the world, much more than 24. Please read
> up on time zones, you should already have plenty of pointers instead of
> asking here all the time.

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 to avoid this sort of ambiguity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140816/126c1cb8/attachment.html>


More information about the Python-list mailing list