Немного кода панды:
import pandas def to_millis(dt): return int(pandas.to_datetime(dt).value / 1000000)