📌  相关文章
📜  在python代码示例中将整数转换为日期时间

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

代码示例1
>>> import datetime
>>> your_timestamp = 1331856000000
>>> date = datetime.datetime.fromtimestamp(your_timestamp / 1e3)

>>> date
datetime.datetime(2012, 3, 16, 1, 0)