2016-04-12 10:26 AM
I am trying to convert the timestamp from API Services output to date/time format, but I for some reason I cannot get a date/time format.
I tried to convert using python and I received a message that the year is out of range
Follow below an example code:
your_timestamp = 1460409856461
The output is:
ValueError: year is out of range
Solved! SEE THE SOLUTION
2016-04-12 10:44 AM
It might be in milliseconds, try dividing by 1000 (and rounding down to the nearest whole number).