📌  相关文章
📜  python datetime 到 unix 时间戳 - Python 代码示例

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

代码示例3
from datetime import datetime, timedelta
import time
dtime = datetime.now() + timedelta(seconds=3)
unixtime = time.mktime(dtime.timetuple())