I would like to convert a Python date
object to a Unix timestamp.
I already added a time
object, so it would be that specific date at midnight, but I don't know how to continue from there.
d = date(2014, 10, 27)
t = time(0, 0, 0)
dt = datetime.combine(d, t)
#How to convert this to Unix timestamp?
I am using Python 2.7