Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!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.033 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'string': 0.09; '2.7': 0.14; '"right"': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'select': 0.22; 'aug': 0.22; 'documented': 0.24; 'subject:problem': 0.24; 'earlier': 0.24; '15,': 0.26; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'handle': 0.38; 'to:addr:python- list': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'further': 0.61; 'worth': 0.66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Vu1a7R7aFc8VOwG6xYOpaNkZTM2UgTXYXLkDfGU1ank=; b=yYVeZRGnsBti71lDJKi+RGJYH7nuXT54JV4Ase7GceSsnn7DleHGo3UzrRD4Hh1/jO R7YFjnRAZ8zFSca1FEvo3tcN0VKtK7lxvq8UjW9Kr6DQ+qs2C80dcevC4wbEDmW83Me5 X0HNM2Pv8EYc8P3vqox5cwMipAlB9VyaxQo6w8bACjkN7ZK/902VdZoc0t4xjddB4M6I FREZkQRLiOkuaTndNzZbsWnkBAE0psuYEykKAgIsMmAUvPGEj0chmulBMHyeXsN0rn70 6s9TLM82z1WKRYSOZTRoSrIOIQg2300jFrC6GThQUoDiQjIUmXYBB0BZF/hdUIH1p6zc vLkw== X-Received: by 10.68.68.131 with SMTP id w3mr13135547pbt.90.1408116223362; Fri, 15 Aug 2014 08:23:43 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Fri, 15 Aug 2014 09:23:02 -0600 Subject: Re: timedelta problem To: Python 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: 1408116226 news.xs4all.nl 2977 [2001:888:2000:d::a6]:56129 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76374 On Fri, Aug 15, 2014 at 1:39 AM, Denis McMahon wrote: > On Fri, 15 Aug 2014 10:24:47 +0800, luofeiyu wrote: > > On further inspection, it seems that strptime() in 2.7 doesn't handle %z > at all. In 3.2, it ignores the value it gets, because there's no > practical way to select the "right" tz string from the offset. I'm not sure when %z was added, but it's worth noting that it doesn't seem to be documented earlier than 3.3.