📜  json 时间戳到日期 python 代码示例

📅  最后修改于: 2022-03-11 14:47:22.738000             🧑  作者: Mango

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