public SimpleTimeLabelFormat(String format){
  this.format=format.replaceAll("%([^%])","%1\\$t$1");
}

public SimpleTimeLabelFormat ( String format ) { this . format = format . replaceAll ( "%([^%])" , "%1\\$t$1" ) ; }
create a new instance using a format string that is either an strftime patter or a simple date format pattern .
