我有一个包含时间戳的数据文件,如"1331856000000".不幸的是,我没有很多关于格式的文档,所以我不确定时间戳是如何格式化的.我已经尝试过Python的标准datetime.fromordinal()和datetime.fromtimestamp()其他一些标准,但没有任何匹配.我很确定特定的数字对应于当前日期(例如2012-3-16),但不是更多.
datetime.fromordinal()
datetime.fromtimestamp()
如何将此数字转换为datetime?
datetime
python datetime timestamp
datetime ×1
python ×1
timestamp ×1