def total_seconds(td):
    return (td.microseconds + (td.seconds + td.days * 24 * 3600) * 10**6) / 10**6
Takes a timedelta and returns the total number of seconds
dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/total_seconds