📜  13位时间戳python代码示例

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

代码示例1
import datetime

timestamp = "1523126888080"
your_dt = datetime.datetime.fromtimestamp(int(timestamp)/1000)  # using the local timezone
print(your_dt.strftime("%Y-%m-%d %H:%M:%S"))  # 2018-04-07 20:48:08, YMMV