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


Groups > comp.lang.python > #76400 > unrolled thread

Re: timezone argument %z and %Z

Started byChris Angelico <rosuav@gmail.com>
First post2014-08-16 18:44 +1000
Last post2014-08-16 18:44 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: timezone argument %z and %Z Chris Angelico <rosuav@gmail.com> - 2014-08-16 18:44 +1000

#76400 — Re: timezone argument %z and %Z

FromChris Angelico <rosuav@gmail.com>
Date2014-08-16 18:44 +1000
SubjectRe: timezone argument %z and %Z
Message-ID<mailman.13047.1408178653.18130.python-list@python.org>
On Sat, Aug 16, 2014 at 6:21 PM, Ian Kelly <ian.g.kelly@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 to avoid this sort of ambiguity.

And about fifty other time zones, too. Offsets are great if you want
that simplicity, but the only reliable way to handle time zones with
DST changes is a tzdata identifier like "Australia/Adelaide" or
"America/New_York" (which correspond to the two meanings of EST that
you mentioned).

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web