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


Groups > comp.lang.python > #76400

Re: timezone argument %z and %Z

References <53EEF7DF.7080409@gmail.com> <85fvgx53rn.fsf@benfinney.id.au> <CALwzidnZ9PTKK1cKPYU2BvTgKp218o31TYOOZDfumv_KTvgJBQ@mail.gmail.com>
Date 2014-08-16 18:44 +1000
Subject Re: timezone argument %z and %Z
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.13047.1408178653.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web