I have a Python datetime object that I want to convert to unix time, or seconds/milliseconds since the 1970 epoch.
datetime
How do I do this?
import time seconds_since_epoch = time.mktime(your_datetime.timetuple()) * 1000