Returning millisecond representation of datetime in python,date_time_secs = time.mktime(datetimeobj.timetuple())