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

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

代码示例2
stack  overflow url: https://stackoverflow.com/questions/28154066/how-to-convert-datetime-to-integer-in-python

import datetime 

dt = datetime.datetime.now()
seq = int(dt.strftime("%Y%m%d%H%M%S"))