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


Groups > comp.lang.python > #67734

Re: Proper conversion of timestamp

References <CA+FnnTy2zoJYzx+ExkHf8SsENppBLaQzp2zOC9WFYsLBYwK9Qg@mail.gmail.com> <531647BE.70104@mrabarnett.plus.com> <CA+FnnTwWXnZ_PtNuwa-8dp5VEMzxMj6CKXiFbzBuEUBzHLKdkQ@mail.gmail.com>
Date 2014-03-05 08:55 +1100
Subject Re: Proper conversion of timestamp
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.7751.1393970146.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Mar 5, 2014 at 8:46 AM, Igor Korot <ikorot01@gmail.com> 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

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 08:55 +1100

csiph-web