Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; 'subject:support': 0.07; 'cc:addr:python-list': 0.11; 'jan': 0.12; 'programs.': 0.14; 'finney': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'reason.': 0.16; 'storing': 0.16; 'timestamp': 0.16; 'utc': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; '31,': 0.24; 'cc:2**0': 0.24; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'converting': 0.30; 'message-id:@mail.gmail.com': 0.30; 'fri,': 0.33; 'subject: (': 0.35; 'received:google.com': 0.35; 'possible': 0.36; 'should': 0.36; 'ben': 0.38; 'pm,': 0.38; 'our': 0.64; 'to/from': 0.84; 'canonical': 0.91; 'to:none': 0.92 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:cc :content-type; bh=nOpBXmpQAxhIiehTtdvMyOYzQpVYEraOg2YJJnvH0S8=; b=bzzee6Bry7nXIm7sAZjZautfsZQW+0ZeF/+xfSBr4RNJAE8ot4VyfdGbR+l7jmWQer U1FyRtmPQyovBH/Ou5TY4DhtT5RFKTJNMHP59Q5BFxtH2Bh8wmriwjeFwDIcgH9c/HPK uyDD/pwO9cTpzJV/tdK+14fwZDXbc01nsqwuXRlY3LWbGFhdJZ92F6L+oGKPxMcJmFlj 81kYCRiDM8oOWcjBMRmTkVm0EdaWSTU06Wtr+rL8vds99STzHgtOghxRq8wLFsuCv/jt Z7eBwtcsi08NUQr0hSAyttou/O0Ym6m5/tikHJGWz9vQ95nHnsmxKDzch9YJdRL71USP WJZQ== MIME-Version: 1.0 X-Received: by 10.66.160.2 with SMTP id xg2mr17895560pab.23.1391135736280; Thu, 30 Jan 2014 18:35:36 -0800 (PST) In-Reply-To: <85txckj38q.fsf@benfinney.id.au> References: <85eh3qcsr9.fsf@benfinney.id.au> <85txckj38q.fsf@benfinney.id.au> Date: Fri, 31 Jan 2014 13:35:36 +1100 Subject: Re: Improving support for timezones in Python (was: UTC "timezone" causing brain explosions) From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391135739 news.xs4all.nl 2894 [2001:888:2000:d::a6]:36730 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65079 On Fri, Jan 31, 2014 at 1:26 PM, Ben Finney wrote: > He also reinforces the message that UTC is the canonical timezone for > storing and manipulating timestamp values, and we should be converting > to/from those canonical values as early/late as possible in our programs. Call it a "UTC Sandwich", like Ned Batchelder's "Unicode Sandwich". It's a good idea for the same reason. ChrisA