In Python, how do I convert a datetime.datetime into the kind of float that I would get from the time.time function?
datetime.datetime
float
time.time
time.mktime(dt_obj.timetuple())
Should do the trick.