marca de tiempo hasta la fecha Python
from datetime import datetime
timestamp = 1586507536367
dt_object = datetime.fromtimestamp(timestamp)
Beautiful Bear
from datetime import datetime
timestamp = 1586507536367
dt_object = datetime.fromtimestamp(timestamp)
for location in locations:
print(datetime.datetime.fromtimestamp(
int(location.get("timestampMs"))/1000
).strftime("%Y-%m-%dT%H:%M:%SZ"))
from datetime import datetime
timestamp = 1586507536367
dt_object = datetime.fromtimestamp(timestamp)
for location in locations:
print(datetime.datetime.fromtimestamp(
int(location.get("timestampMs"))/1000
).strftime("%Y-%m-%dT%H:%M:%SZ"))