📌  相关文章
📜  python 将日期时间转换为浮点数 - Python 代码示例

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

代码示例2
DT = datetime.datetime(2016,01,30,15,16,19,234000) #trailing zeros are required
DN = (DT - datetime.datetime(2000,1,1)).total_seconds()
print repr(DN)