📜  python 2.7 日期时间到时间戳 - Python 代码示例

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

代码示例1
import time
from datetime import datetime
d = datetime(2017, 6, 11, 0, 0)

unixtime = time.mktime(d.timetuple())