public String toClock(){
  StringBuilder s=new StringBuilder();
  s.append(((this.weeks * 7 + this.days) * 24 + this.hours) + ":");
  if (this.minutes < 10) {
    s.append('0');
  }
  s.append(this.minutes + ":");
  if (this.seconds < 10) {
    s.append('0');
  }
  s.append(this.seconds + ".");
  if (this.milliseconds < 100) {
    s.append('0');
  }
  if (this.milliseconds < 10) {
    s.append('0');
  }
  s.append(this.milliseconds);
  return s.toString();
}

public String toClock ( ) { StringBuilder s = new StringBuilder ( ) ; s . append ( ( ( this . weeks * 7 + this . days ) * 24 + this . hours ) + ":" ) ; if ( this . minutes < 10 ) { s . append ( '0' ) ; } s . append ( this . minutes + ":" ) ; if ( this . seconds < 10 ) { s . append ( '0' ) ; } s . append ( this . seconds + "." ) ; if ( this . milliseconds < 100 ) { s . append ( '0' ) ; } if ( this . milliseconds < 10 ) { s . append ( '0' ) ; } s . append ( this . milliseconds ) ; return s . toString ( ) ; }
returns the clock description of the time value .
