private static void print1() {
DateTimeFormatter f = new DateTimeFormatterBuilder().appendText(ChronoField.AMPM_OF_DAY)
.appendLiteral(' ').appendValue(ChronoField.AMPM_OF_DAY).toFormatter();
System.out.println(f.format(LocalTime.of(12, 30)));
System.out.println(f.format(ZonedDateTime.now()));
}
private static void print2() {
DateTimeFormatter f = new DateTimeFormatterBuilder().appendText(ChronoField.MONTH_OF_YEAR)
.appendLiteral(' ').appendValue(ChronoField.YEAR).toFormatter();