import time import datetime d = datetime.date(2015,1,5) unixtime = time.mktime(d.timetuple()) # 1420412400.0 (float)
#get date from unix timestamp from datetime import date timestamp = date.fromtimestamp(1326244364)