import time import datetime d = datetime.date(2015,1,5) unixtime = time.mktime(d.timetuple()) # 1420412400.0 (float)