Software Development Kit (SDK) and API Discussions
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:
import datetimeyour_timestamp = 1460409856461print datetime.datetime.fromtimestamp(your_timestamp)
The output is:
ValueError: year is out of range
See The Solution
It might be in milliseconds, try dividing by 1000 (and rounding down to the nearest whole number).
View solution in original post
Awesome my friend !!!!
It works !
Live Chat, Watch Parties, and More!
Engage digitally throughout the sales process, from product discovery to conﬁguration, and handle all your post-purchase needs.