def _timedelta_to_seconds(timedelta):
    return (timedelta.days * 86400 + timedelta.seconds +
            timedelta.microseconds // 1000)
>>> _timedelta_to_seconds(datetime.timedelta(hours=3))
dataset/ETHPy150Open eugenkiss/Simblin/simblin/lib/rfc3339.py/_timedelta_to_seconds