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


Groups > comp.lang.python > #67580

Re: modification time in Python - Django: datetime != datetime :-(

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.022
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'subject:Django': 0.03; 'subject:Python': 0.06; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'strftime': 0.16; 'wrote:': 0.18; 'looked': 0.18; 'all,': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; 'subject:time': 0.33; 'received:google.com': 0.35; "didn't": 0.36; 'should': 0.36; 'even': 0.60; "you're": 0.61; 'minutes': 0.67; 'mar': 0.68; '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=QY+Rj7byBFMdw0x7EsOJPnSqywgCPqNjz/GyyAJywF8=; b=wrA8b0Kw8Nr+80PGw1fuqPMUz8BMd4JbC/ZTh9SvjRZ+xBpMKw3SbLPL60Si7u6hb4 RkmXJdFMAJg+8d6TGzVzw2dgn8u6xh7Pk5aWGPiDEWPoMnuVj6ZDmETFnnhf6qS2ZUwq BIVmklFDHTYAeHbl4XCQz6+JhhgbBwYhqScfICL6M+faWn0STtopt2Wyn6nbM/o/583o htiT5DJ52wmjEXWDNhPx2Uv3zOMhXn7fsRIKebn1byNLoe6NpMf1N09CMUmlfIKfxbgR JLYN/l7cqNhxUgmBiW/htkP3U4etr1dZk8SoE31zn83alnoXWTNOFdyo3zPETH4M8O0y Ptaw==
MIME-Version 1.0
X-Received by 10.66.102.39 with SMTP id fl7mr1714910pab.43.1393881106372; Mon, 03 Mar 2014 13:11:46 -0800 (PST)
In-Reply-To <04659633-e14e-4d5b-90f2-93af04f056be@googlegroups.com>
References <20140303133541.66fccbbb@lia.custard.shrl.nl> <CAPTjJmrp9Ca5zyfo75NKcX_ik0Qi4kOcjhhY6EEWKQ-xJx7KQg@mail.gmail.com> <mailman.7646.1393856904.18130.python-list@python.org> <04659633-e14e-4d5b-90f2-93af04f056be@googlegroups.com>
Date Tue, 4 Mar 2014 08:11:46 +1100
Subject Re: modification time in Python - Django: datetime != datetime :-(
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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.7658.1393881109.18130.python-list@python.org> (permalink)
Lines 7
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1393881109 news.xs4all.nl 2833 [2001:888:2000:d::a6]:54703
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:67580

Show key headers only | View raw


On Tue, Mar 4, 2014 at 7:22 AM, donarb <donarb@nwlink.com> wrote:
> You're using the months format '%m' when you should be using minutes '%M'.

Heh! I didn't even notice that. When I tested it, I didn't use
strftime at all, just looked at gmtime's output.

ChrisA

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


Thread

Re: modification time in Python - Django: datetime != datetime :-( Jaap van Wingerde <mailinglists@vanwingerde.nl> - 2014-03-03 14:28 +0000
  Re: modification time in Python - Django: datetime != datetime :-( donarb <donarb@nwlink.com> - 2014-03-03 12:22 -0800
    Re: modification time in Python - Django: datetime != datetime :-( Chris Angelico <rosuav@gmail.com> - 2014-03-04 08:11 +1100
    Re: modification time in Python - Django: datetime != datetime :-( Jaap van Wingerde <mailinglists@vanwingerde.nl> - 2014-03-04 10:33 +0000
      Re: modification time in Python - Django: datetime != datetime :-( donarb <donarb@nwlink.com> - 2014-03-04 08:45 -0800
        Re: modification time in Python - Django: datetime != datetime :-( Roy Smith <roy@panix.com> - 2014-03-04 12:43 -0500

csiph-web