@Override
        boolean matches(DateTimeParserContext ctx) {
            Iterator<Node> nodeIt = iterator();
            DateTimeParserContext.Cursor cursor = ctx.cursor();
            int mark = cursor.value();

            while (ctx.hasMoreTokens() && nodeIt.hasNext()) {
                Node node = nodeIt.next();

                if (!node.matches(ctx)) {
                    cursor.setValue(mark);
                    return false;
                }
            }

            if (nodeIt.hasNext()) {
                cursor.setValue(mark);
                return false;
            }

            return true;
        }
Matches the hour in 24 hour format: "04", "07", "19" including "24"
exts/jphp-zend-ext/src/main/java/org/develnext/jphp/zend/ext/standard/date/DateTimeParser.java