public DateTimeFormatter withLocale(Locale locale){
  if (locale == getLocale() || (locale != null && locale.equals(getLocale()))) {
    return this;
  }
  return new DateTimeFormatter(iPrinter,iParser,locale,iOffsetParsed,iChrono,iZone,iPivotYear,iDefaultYear);
}

public DateTimeFormatter withLocale ( Locale locale ) { if ( locale == getLocale ( ) || ( locale != null && locale . equals ( getLocale ( ) ) ) ) { return this ; } return new DateTimeFormatter ( iPrinter , iParser , locale , iOffsetParsed , iChrono , iZone , iPivotYear , iDefaultYear ) ; }
returns a new formatter with a different locale that will be used for printing and parsing . < p > a datetimeformatter is immutable , so a new instance is returned , and the original is unaltered and still usable .
