def str_to_seconds(s):
    return int((pd.Timestamp(s, tz='UTC') - EPOCH).total_seconds())
Convert a pandas-intelligible string to (integer) seconds since UTC.
dataset/ETHPy150Open quantopian/zipline/zipline/testing/core.py/str_to_seconds