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?
A bit of pandas code:
import pandas def to_millis(dt): return int(pandas.to_datetime(dt).value / 1000000)