Skip to main content
 首页 » 编程设计

python之如何将时间戳字符串转换为日期时间对象

2025年05月04日21yxwkf

<分区>

Possible Duplicate:
Converting unix timestamp string to readable date in Python

我有一个时间戳:

t = 1322745926.123 

如何将时间戳转换为日期时间对象?

datetime.strptime(t,date_format) 

在上面的函数调用中date_format应该是什么?