def str_to_seconds(s):
 return timedelta_to_integral_seconds((pd.Timestamp(s, tz='UTC') - EPOCH))

def str_to_seconds ( s ) : return timedelta_to_integral_seconds ( ( pd . Timestamp ( s , tz = 'UTC' ) - EPOCH ) )
convert a pandas-intelligible string to seconds since utc .