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


Groups > comp.lang.python > #76374

Re: timedelta problem

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 <ian.g.kelly@gmail.com>
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 <lskdfb$6bg$1@dont-email.me>
References <mailman.13018.1408069502.18130.python-list@python.org> <lskdfb$6bg$1@dont-email.me>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Fri, 15 Aug 2014 09:23:02 -0600
Subject Re: timedelta problem
To Python <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 <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>
Newsgroups comp.lang.python
Message-ID <mailman.13032.1408116226.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Fri, Aug 15, 2014 at 1:39 AM, Denis McMahon <denismfmcmahon@gmail.com> 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.

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


Thread

timedelta  problem luofeiyu <elearn2014@gmail.com> - 2014-08-15 10:24 +0800
  Re: timedelta  problem Denis McMahon <denismfmcmahon@gmail.com> - 2014-08-15 03:51 +0000
    Re: timedelta problem Chris Angelico <rosuav@gmail.com> - 2014-08-15 13:59 +1000
    Re: timedelta problem Ian Kelly <ian.g.kelly@gmail.com> - 2014-08-14 22:00 -0600
  Re: timedelta  problem Denis McMahon <denismfmcmahon@gmail.com> - 2014-08-15 07:39 +0000
    Re: timedelta  problem Denis McMahon <denismfmcmahon@gmail.com> - 2014-08-15 08:44 +0000
    Re: timedelta problem Ian Kelly <ian.g.kelly@gmail.com> - 2014-08-15 09:23 -0600
      Re: timedelta problem Denis McMahon <denismfmcmahon@gmail.com> - 2014-08-15 17:43 +0000
        Re: timedelta problem Ian Kelly <ian.g.kelly@gmail.com> - 2014-08-15 12:05 -0600
    Re: timedelta problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-15 17:29 +0100
  Re: timedelta  problem Denis McMahon <denismfmcmahon@gmail.com> - 2014-08-15 09:36 +0000

csiph-web