python date without time to timestamp code example
Example 1: python datetime to timestamp
import datetime
now = datetime.datetime.today()
timestamp = datetime.datetime.timestamp(now)
Example 2: python convert date to timestamp
import time
import datetime
s = "01/12/2011"
time.mktime(datetime.datetime.strptime(s, "%d/%m/%Y").timetuple())