I am making a request to one of server and getting response like this:
result = {"object_type": "window_id",
"cctv_times" : ['1655375216687000', '1655375216717000', '1655375216717000', '1655375216775000']}
I am not able to understand the time format it is using and if I have to make a post request to that server with the current time, I am unable to convert the python timestamp into that format.
In python, if I convert the current time into a timestamp, it looks like this:
from datetime import datetime
time_now = datetime.now().strftime("%s%f")
This gives me results in something like:
1655375242179881
But in server response, there are already a few zeros at the end even though the time is live from there, what is the format and how to convert python time into that format?
1655375216would be June 16 2022, which seems reasonable. The timestamp is simply in microseconds…? Simply divide by 1000000.