def timedelta_seconds(delta):
 return (((((delta.days * 24) * 60) * 60) + delta.seconds) + (delta.microseconds / 1000000.0))

def timedelta_seconds ( delta ) : return ( ( ( ( ( delta . days * 24 ) * 60 ) * 60 ) + delta . seconds ) + ( delta . microseconds / 1000000.0 ) )
converts the given timedelta to seconds .