python datetime 转timestamp

import datetime
import time
d1=datetime.date.today()
t1=time.mktime(d1.timetuple())

d2=datetime.datetime.today()
t2=time.mktime(d2.timetuple())
posted @ 2015-11-04 23:22  过去的我  阅读(2639)  评论(0编辑  收藏  举报