def timedelta_seconds(delta):
    """
    Converts the given timedelta to seconds.

    :type delta: timedelta
    :rtype: float

    """
    return delta.days * 24 * 60 * 60 + delta.seconds + \
        1000000.0 / delta.microseconds
dataset/ETHPy150Open agronholm/apscheduler/apscheduler/util.py/timedelta_seconds/swapped operands of `/`