I have timestamp in milliseconds from 1970. I would like to convert it to a human readable date in python. I don’t might losing some precision if it comes to that.
How should I do that ?
The following give ValueError: timestamp out of range for platform time_t on Linux 32bit
#!/usr/bin/env python
from datetime import date
print date.fromtimestamp(1241711346274)
Thank you,
Maxim.
Python expects seconds, so divide it by 1000.0 first: