#NEWLINE# def timedelta( self ) : #NEWLINE# #INDENT# if ( self . years or self . months ) : #NEWLINE# #INDENT# raise InterfaceError ( 'UNSUPPORTED_INTERVAL' , ( 'timedelta() is not supported for Year and Month interval types. %s' % repr ( self ) ) ) #NEWLINE# #UNINDENT# delta = datetime . timedelta ( days = zeroIfNone ( self . days ) , hours = zeroIfNone ( self . hours ) , minutes = zeroIfNone ( self . minutes ) , seconds = zeroIfNone ( self . seconds ) ) #NEWLINE# if self . negative : #NEWLINE# #INDENT# delta = ( - delta ) #NEWLINE# #UNINDENT# return delta