📜  python datetime 毫秒 - Python 代码示例

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

代码示例2
from datetime import datetime

dt_obj = datetime.strptime('20.12.2016 09:38:42,76',
                           '%d.%m.%Y %H:%M:%S,%f')
millisec = dt_obj.timestamp() * 1000

print(millisec)