#NEWLINE# def extract_timedelta( delta ) : #NEWLINE# #INDENT# ( w , d ) = divmod ( delta . days , 7 ) #NEWLINE# ( mm , ss ) = divmod ( delta . seconds , 60 ) #NEWLINE# ( hh , mm ) = divmod ( mm , 60 ) #NEWLINE# return ( w , d , hh , mm , ss )