@Override
    public void visitTokenLetter(int letter, int repetitions) {
        switch (letter) {
            // date
            case 'u':
            case 'y':
                visitYearToken(repetitions, builder);
                break;
            case 'M':
                visitMonthToken(repetitions, builder);
                break;
            case 'd':
                visitDayOfMonthToken(repetitions, builder);
                break;
            case 'D':
                visitDayOfYearToken(repetitions, builder);
                break;
            case 'E':
                visitDayOfWeekToken(repetitions, builder);
                break;

            // time
            case 'h':
                visitAmPmHourToken(repetitions, builder);
                break;
            case 'H':
                visitHourToken(repetitions, builder);
                break;
            case 'm':
                visitMinuteToken(repetitions, builder);
                break;
            case 's':
                visitSecondToken(repetitions, builder);
                break;
            case 'S':
                visitMillisecondToken(repetitions, builder);
                break;
            case 'a':
                visitAmPmToken(repetitions, builder);
                break;

            // time zone
            case 'z':
            case 'Z':
                visitZoneZToken(repetitions, builder);
                break;
            case 'X':
                visitZoneXToken(repetitions, builder);
                break;

            default:
                final String letterString = Character.toString((char) letter);
                if (LOGGER.isLoggable(Level.WARNING)) {
                    LOGGER.log(Level.WARNING, "Found unsupported letter '" + letterString
                                + "' in pattern. Date / times will be formatted differently on the server and client. Use a different pattern.");
                }
                visitDefault(letterString, repetitions, builder);
        }
    }
Creates a new visitor for a Java date time pattern. Creates a Query UI date picker.
@param builder Builder for creating the JQuery UI date picker pattern.
primefaces/src/main/java/org/primefaces/convert/CombinedDateTimePatternTokenVisitor.java