def _format_timedelta(time):
 result = str(strip_microseconds(time))
 parts = result.split()
 if ((len(parts) == 3) and (len(parts[(-1)]) == 7)):
  return ('%s %s  %s' % tuple(parts))
 else:
  return result

def _format_timedelta ( time ) : result = str ( strip_microseconds ( time ) ) parts = result . split ( ) if ( ( len ( parts ) == 3 ) and ( len ( parts [ ( - 1 ) ] ) == 7 ) ) : return ( '%s %s  %s' % tuple ( parts ) ) else : return result
format a timedelta for use in a columnar format .