(delta)
return ((delta.days * 86400 + delta.seconds) * 10 ** 6 +
            delta.microseconds) / 10.0 ** 6
Total seconds in the duration.
Total seconds in the duration.
Total seconds in the duration .
def _total_seconds(delta):
    """Total seconds in the duration."""
    if hasattr(delta, 'total_seconds'):
        return delta.total_seconds()

    # Python 2.6.
    return ((delta.days * 86400 + delta.seconds) * 10 ** 6 +
            delta.microseconds) / 10.0 ** 6
def _total_seconds ( delta ) : if hasattr ( delta , 'total_seconds' ) : return delta . total_seconds ( ) # Python 2.6. return ( ( delta . days * 86400 + delta . seconds ) * 10 ** 6 + delta . microseconds ) / 10.0 ** 6