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


Groups > comp.lang.python > #67738

Re: Proper conversion of timestamp

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.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.018
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'already.': 0.09; 'cc:addr :python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'igor': 0.16; 'seconds,': 0.16; 'thread,': 0.16; 'timestamp': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'properly': 0.19; 'cc:addr:python.org': 0.22; 'question': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'explained': 0.31; 'convert': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'two': 0.37; 'rather': 0.38; 'how': 0.40; 'read': 0.60; '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=6D31+UR0eGsVzEnRwHJoU0AcW+9oUfAElQFPQo5ydG4=; b=SUol4tLaLJNct+KrHTAKdnpv9XvtjQUD9ti6Wg8UQo9irETm/2791mTqs8v1M1Kwiw 8RemWgIF7DDBwhCNAeFoWoIwbiw6R+uyCxX2MEAFYFL3JWqpt3arOo+fvjwfrZd+R4B+ yN/2b4TTu5mcoOZVoV4gVbjSFLRvKk2Wgoz/0qptFe2zhObQyprkNuOp5DbRRLn9VDFR W4mYNnU/vPUVDfYfw8w2Hyt1GWSqNFgxKRduBQBMOstRt0wh0K6PmJPu5tRMgIKQvC6g Yx9kAaHHpc5LMie9+R5BtGKojXPH9sNMowePz3HaBs0B2OjxIAHlG2f6BWT7kiJYpW8/ kezA==
MIME-Version 1.0
X-Received by 10.66.102.39 with SMTP id fl7mr2190693pab.43.1393970585529; Tue, 04 Mar 2014 14:03:05 -0800 (PST)
In-Reply-To <CA+FnnTxuiNTeaTu7LEdPWvsSnbbirgXqaCS67p5HOrruQPcZ9A@mail.gmail.com>
References <CA+FnnTy2zoJYzx+ExkHf8SsENppBLaQzp2zOC9WFYsLBYwK9Qg@mail.gmail.com> <lf5hes$ve3$1@ger.gmane.org> <CA+FnnTxuiNTeaTu7LEdPWvsSnbbirgXqaCS67p5HOrruQPcZ9A@mail.gmail.com>
Date Wed, 5 Mar 2014 09:03:05 +1100
Subject Re: Proper conversion of timestamp
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.7755.1393970594.18130.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1393970594 news.xs4all.nl 2926 [2001:888:2000:d::a6]:38084
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:67738

Show key headers only | View raw


On Wed, Mar 5, 2014 at 8:55 AM, Igor Korot <ikorot01@gmail.com> wrote:
>
> This is because this timestamp is not in seconds, but rather in
> milliseconds.
>
> Now the question I have is: how do I properly convert this timestamp into
> the datetime object with the milliseconds?

Read elsewhere in the thread, two people have explained this already.

ChrisA

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


Thread

Re: Proper conversion of timestamp Chris Angelico <rosuav@gmail.com> - 2014-03-05 09:03 +1100

csiph-web