Proper conversion of timestamp
python at mrabarnett.plus.com
Tue Mar 4 22:38:06 CET 2014
On 2014-03-04 20:57, Igor Korot wrote:
> 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:
> 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
> Thank you.
Are you using Python 2? If yes, then try dividing by 1000.0.
More information about the Python-list