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


Groups > comp.lang.python > #67719 > unrolled thread

Proper conversion of timestamp

Started byIgor Korot <ikorot01@gmail.com>
First post2014-03-04 12:57 -0800
Last post2014-03-04 12:57 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Proper conversion of timestamp Igor Korot <ikorot01@gmail.com> - 2014-03-04 12:57 -0800

#67719 — Proper conversion of timestamp

FromIgor Korot <ikorot01@gmail.com>
Date2014-03-04 12:57 -0800
SubjectProper conversion of timestamp
Message-ID<mailman.7740.1393966637.18130.python-list@python.org>
Hi, ALL,
I'm getting this:

timestamp out of range for platform localtime()/gmtime() function

trying to convert the timestamp with milliseconds into the datetime object.

The first hit of Google gives me this:

http://stackoverflow.com/questions/12458595/convert-epoch-timestamp-in-python

but the solution described is not good for me since it does not gives
me the milliseconds value.

How do I get the proper datetime value including milliseconds from the
timestamp?

Thank you.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web