public String toString(){
  StringBuilder s=new StringBuilder();
  boolean appended=false;
  if (this.weeks != 0 || appended) {
    appended=true;
    s.append(this.weeks + " Wochen ");
  }
  if (this.days != 0 || appended) {
    appended=true;
    s.append(this.days + " Tage ");
  }
  if (this.hours != 0 || appended) {
    appended=true;
    s.append(this.hours + " Stunden ");
  }
  if (this.minutes != 0 || appended) {
    appended=true;
    s.append(this.minutes + " Minuten ");
  }
  if (this.seconds != 0 || appended) {
    appended=true;
    s.append(this.seconds + " Sekunden ");
  }
  if (this.milliseconds != 0 || appended) {
    appended=true;
    s.append(this.milliseconds + " Milisekunden");
  }
  return s.toString();
}

public String toString ( ) { StringBuilder s = new StringBuilder ( ) ; boolean appended = false ; if ( this . weeks != 0 || appended ) { appended = true ; s . append ( this . weeks + " Wochen " ) ; } if ( this . days != 0 || appended ) { appended = true ; s . append ( this . days + " Tage " ) ; } if ( this . hours != 0 || appended ) { appended = true ; s . append ( this . hours + " Stunden " ) ; } if ( this . minutes != 0 || appended ) { appended = true ; s . append ( this . minutes + " Minuten " ) ; } if ( this . seconds != 0 || appended ) { appended = true ; s . append ( this . seconds + " Sekunden " ) ; } if ( this . milliseconds != 0 || appended ) { appended = true ; s . append ( this . milliseconds + " Milisekunden" ) ; } return s . toString ( ) ; }
returns the textual description of the time value .
