<div dir="ltr">Mark,<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 4, 2014 at 1:45 PM, Mark Lawrence <span dir="ltr"><<a href="mailto:breamoreboy@yahoo.co.uk" target="_blank">breamoreboy@yahoo.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 04/03/2014 21:38, MRAB wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 2014-03-04 20:57, Igor Korot wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, ALL,<br>
I'm getting this:<br>
<br>
timestamp out of range for platform localtime()/gmtime() function<br>
<br>
trying to convert the timestamp with milliseconds into the datetime<br>
object.<br>
<br>
The first hit of Google gives me this:<br>
<br>
<a href="http://stackoverflow.com/questions/12458595/convert-epoch-timestamp-in-python" target="_blank">http://stackoverflow.com/<u></u>questions/12458595/convert-<u></u>epoch-timestamp-in-python</a><br>
<br>
<br>
but the solution described is not good for me since it does not gives<br>
me the milliseconds value.<br>
<br>
How do I get the proper datetime value including milliseconds from the<br>
timestamp?<br>
<br>
Thank you.<br>
<br>
</blockquote>
Are you using Python 2? If yes, then try dividing by 1000.0.<br>
<br>
</blockquote>
<br></div></div>
You learn something new every day, I wasn't aware that you could multiply or divide timestamps.</blockquote><div><br></div><div>Of course you can. Its just the number.<br></div><div>And this is exactly what happens on the stackoverflow question I referenced in the OP.<br>
</div><div>Problem is I want the milliseconds in the datetime object.<br></div><div><br></div><div>Thank you.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.<br>
<br>
Mark Lawrence<br>
<br>
---<br>
This email is free from viruses and malware because avast! Antivirus protection is active.<br>
<a href="http://www.avast.com" target="_blank">http://www.avast.com</a><br>
<br>
<br>
-- <br>
<a href="https://mail.python.org/mailman/listinfo/python-list" target="_blank">https://mail.python.org/<u></u>mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br></div></div>