<div dir="ltr">Hi all,<br>
I don't know if this question will fit on this section,<br>
any way my query is , i have used one script demork.py to extract details from Firefox history.dat file <br>
and now the problem is how to convert the TIMESTAMP given by that to normal date and time.<br>
example timestams are like this,<br>
<br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">1202919771609375</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">1213874676203125</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">1215693263859375</span><br>
<br>
i have used datetime module for this but it gave me error <br>
<br>
<span style="font-family: courier new,monospace;">>>> import datetime</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">>>> datetime.datetime.fromtimestamp(1215693263859375)</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Traceback (most recent call last):</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  File "<pyshell#1>", line 1, in <module></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    datetime.datetime.fromtimestamp(1215693263859375)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">ValueError: timestamp out of range for platform time_t</span><br style="font-family: courier new,monospace;">
<br>
<br>
please help me to convert this ?</div>