我想将Python的
我已经添加了一个
我正在使用Python 2.7版本。
date
对象转换为Unix时间戳。我已经添加了一个
time
对象,这样就可以得到那个特定日期的午夜时间,但我不知道如何继续操作。d = date(2014, 10, 27)
t = time(0, 0, 0)
dt = datetime.combine(d, t)
#How to convert this to Unix timestamp?
我正在使用Python 2.7版本。