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


Groups > comp.lang.python > #67719

Proper conversion of timestamp

Date 2014-03-04 12:57 -0800
Subject Proper conversion of timestamp
From Igor Korot <ikorot01@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.7740.1393966637.18130.python-list@python.org> (permalink)

Show all headers | View raw


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.

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


Thread

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

csiph-web