for location in locations: print(datetime.datetime.fromtimestamp( int(location.get("timestampMs"))/1000 ).strftime("%Y-%m-%dT%H:%M:%SZ"))