public String format(TemporalAccessor temporal){
  StringBuilder buf=new StringBuilder(32);
  formatTo(temporal,buf);
  return buf.toString();
}

public String format ( TemporalAccessor temporal ) { StringBuilder buf = new StringBuilder ( 32 ) ; formatTo ( temporal , buf ) ; return buf . toString ( ) ; }
formats a date - time object using this formatter . < p > this formats the date - time to a string using the rules of the formatter .
