Пример #1
0
 @Override
 public String format(String format, List<String> amPmIndicators) {
   DateTimeFormatter dateTimeFormatter = new DateTimeFormatter(format, null, null, amPmIndicators);
   return dateTimeFormatter.format(new DateTimeFormatterAdapter(this));
 }
Пример #2
0
 @Override
 public String format(String format, Locale locale) {
   DateTimeFormatter dateTimeFormatter = new DateTimeFormatter(format, locale);
   return dateTimeFormatter.format(new DateTimeFormatterAdapter(this));
 }