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: 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> <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 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: 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 On Tue, Mar 4, 2014 at 7:22 AM, donarb 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