Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.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.034 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'igor': 0.16; 'seconds,': 0.16; 'there?': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'bit': 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; "i'm": 0.30; 'but': 0.35; 'received:google.com': 0.35; 'i.e.': 0.36; 'mar': 0.68; '2.7.': 0.84; 'different.': 0.84; '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=iowqKxAL5pW+bcX6rmzDjZ0AN+JFW7Epx+Uu9M1FYJs=; b=KgoAax4Np/8KSVUi5o4xDmWoN/dtcFshhYRiARTcPUpZApbrH6JcNh1TT7fKIWQ/jn 9Ci4xBjbEaRvntH88CWhB+X9m+eKQbBZRM9P073ffSB53PNVtnZAIPyPmMXeheUKbfDw TZelNnSQrUmhzcGxz5lnDi9AAXaPjnwY9KjjIQxooJb9lJ2zLXjOVNVtaV7FpzQGI22F xA3C7S9ToRvBv0BhsHsKIUrhQufZciFLcCzZEu5+M9vcDVBeeW6p1VuvRivLp+hKmfzB UO7oVgskg+18yNyjBCJ3AysHvwcxKYrsLgb88wf/2F9zMHSN99vvPvJln7AunZbwwYvP Ea1w== MIME-Version: 1.0 X-Received: by 10.66.102.39 with SMTP id fl7mr2153554pab.43.1393970143903; Tue, 04 Mar 2014 13:55:43 -0800 (PST) In-Reply-To: References: <531647BE.70104@mrabarnett.plus.com> Date: Wed, 5 Mar 2014 08:55:43 +1100 Subject: Re: Proper conversion of timestamp 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393970146 news.xs4all.nl 2864 [2001:888:2000:d::a6]:53998 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67734 On Wed, Mar 5, 2014 at 8:46 AM, Igor Korot wrote: >> Are you using Python 2? If yes, then try dividing by 1000.0. > > > Yes, I'm using python 2.7. > But dividing by 1000 will give the precision in seconds, i.e. "YYYY-MM-DD > HH:MM:SS". Did you notice the bit at the end there? Try dividing by 1000.0, see if that's any different. ChrisA