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


Groups > comp.lang.python > #104836

Re: Missing something about timezones

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Skip Montanaro <skip.montanaro@gmail.com>
Newsgroups comp.lang.python
Subject Re: Missing something about timezones
Date Mon, 14 Mar 2016 11:29:21 -0500
Lines 13
Message-ID <mailman.115.1457972964.12893.python-list@python.org> (permalink)
References <CANc-5UxYPyj85EZfOwGuJarBNj=Ob4mdu7A3Vt4rL8qJhTi+8A@mail.gmail.com> <CALwzidmkEkJzmDipPHddfjwx0ggxD=9Vg-csGaTY0+KUojL1eg@mail.gmail.com> <CANc-5UxK6uAPFVX50ZUCjpsqJZRPao1Z+kv5kFKTr0cVXrb03Q@mail.gmail.com> <CALwzidmCBH0jdpEtAVWWmqPV3oppWsM=frizV_QvCOLkZuE2UA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de F+TTMaK7CRmWFuv/1Tb0twgFxnlgT2nEdxJPR9MfMz+Q==
Return-Path <skip.montanaro@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'cc:addr:python-list': 0.09; '(sorry': 0.09; 'incorrect': 0.09; '2016': 0.16; 'cc:name:python': 0.16; 'naive': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'should.': 0.16; 'timezones': 0.16; 'wrote:': 0.16; 'skip': 0.18; 'thanks.': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'chicago': 0.22; 'am,': 0.23; "haven't": 0.24; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'example': 0.26; 'message-id:@mail.gmail.com': 0.27; '14,': 0.27; "i'm": 0.30; 'received:google.com': 0.35; 'but': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'does': 0.39; 'mar': 0.65; 'demonstrates': 0.84; 'remained': 0.84; 'technically': 0.91; 'thing,': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=IQ9X5c7xF7TlrevYGuaibHJPZ9Pz7NlUAv6I3IgNOos=; b=ipcEL6tA7UFeWtCWV9Yy27gs76U28KNQulKO6IJuuXEauKq7dkimCQ/KCrBZ528+zu u0j27MVIVpuMDj0Q3I4PlfmE88wM+MIclWYswkAfPluzbxQQ/scF6T4MBI082IMW9NUi mQBYVQut839ZjgB+E20Qpiu/t8Ih0ON7dlPGYNOrfCtGHAsUMgurY0pOZIKw22eZnGa0 kYtMGwg3YAlK4mUsRcJRsbsW4hRsY7l1RJKvbDETOZnIoBGUcgNkDGB/ydWpM7/WOq+r yeEsWExiL9Hmt3q5NkhjnInSEPVtg4RzreSJPC5VvIe6LIBxoYdIKKkXns9HrJY6Gyns iM9g==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=IQ9X5c7xF7TlrevYGuaibHJPZ9Pz7NlUAv6I3IgNOos=; b=f+2FLmrsTWorF5Gf98fu/lu03+tu+nLudPq1ZNKRkX7N1UiMNLLOiEoXl+G/2dScxW wVcJjHPpQ0mEikzb4ZzBDhRJbtjxcmJsgo/jxqqLI7TihtjEE01fykySBg+OBkLIGPzl WOcnNZU2qv9TA8hDRX/f2yFUg2NVeQ4hgb7gSjxous4kFnVgsqKOUTOETTR1MWaARzPF Ta0ey481u6kWhbpLCEUZqy5z9QJBVoJGwL6sqY6NmNDqaLbwBjehjf89OL1LphvE8f7E e8BjH9+WBPdO5uiH5p71FsY/PYdmFlZa15eSFQ/f2RP4OJj2A/K4SyyKj4++7N0pgphr lJhw==
X-Gm-Message-State AD7BkJKKK1uDO+3ndq/vUB10RCoGi2SkxamGaCEzcmUD2QB/ld5FfylId49M84WQxIlTTxT+iungTBApEbyBZA==
X-Received by 10.140.160.214 with SMTP id g205mr33169870qhg.88.1457972961847; Mon, 14 Mar 2016 09:29:21 -0700 (PDT)
In-Reply-To <CALwzidmCBH0jdpEtAVWWmqPV3oppWsM=frizV_QvCOLkZuE2UA@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:104836

Show key headers only | View raw


On Mon, Mar 14, 2016 at 11:20 AM, Ian Kelly <ian.g.kelly@gmail.com> wrote:
> Note that the above example is technically incorrect since
> datetime.now() returns local time and I'm not in the Chicago timezone,
> but it demonstrates the process.
>
> Also, if you haven't already read the pytz documentation, you should.
> http://pythonhosted.org/pytz/

Thanks. I have remained pretty naive about timezones (sorry for the
pun). The platform I use actually does the right thing, but like a
dope I failed to use the mechanisms it provided.

Skip

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


Thread

Re: Missing something about timezones Skip Montanaro <skip.montanaro@gmail.com> - 2016-03-14 11:29 -0500

csiph-web