Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76379
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Denis McMahon <denismfmcmahon@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: timedelta problem |
| Date | Fri, 15 Aug 2014 17:43:09 +0000 (UTC) |
| Organization | A noiseless patient Spider |
| Lines | 23 |
| Message-ID | <lslgrd$5hh$1@dont-email.me> (permalink) |
| References | <mailman.13018.1408069502.18130.python-list@python.org> <lskdfb$6bg$1@dont-email.me> <mailman.13032.1408116226.18130.python-list@python.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Fri, 15 Aug 2014 17:43:09 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="66ffcfa4470a58bcddbdcd1913f98ab4"; logging-data="5681"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZDJqynbqjWqP2pTHP5jH6qMun3oBTUFU=" |
| User-Agent | Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2) |
| Cancel-Lock | sha1:gg9mB3iDJpiQRDzmelOvc+f5Is8= |
| Xref | csiph.com comp.lang.python:76379 |
Show key headers only | View raw
On Fri, 15 Aug 2014 09:23:02 -0600, Ian Kelly wrote: > 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. There may be some confusion because %z is in the table of strftime and strptime format chars on the 2.7.8 docs at https://docs.python.org/2/library/datetime.html#strftime-and-strptime- behavior but I suspect it's only applicable to strftime in that release. -- Denis McMahon, denismfmcmahon@gmail.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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