private static Consumer<DateTimeParserContext> nthWeekDayConsumer() {
        return ctx -> {
            int snapshot = ctx.cursor().value();
            String dayOfWeek = ctx.readStringAtCursor();
            String ordinal = ctx.withCursorValue(snapshot - 2).readStringAtCursor();
            ctx.withAdjuster(Adjusters.dayOfWeekInMonth(ordinal, dayOfWeek), ChronoField.DAY_OF_WEEK);
        };
    }
The base time for relative statements.
exts/jphp-zend-ext/src/main/java/org/develnext/jphp/zend/ext/standard/date/DateTimeParser.java