private static Consumer<DateTimeParserContext> mySqlTimestamp() {
        return ctx -> {
            int s = ctx.tokenAtCursor().start();
            DateTimeTokenizer t = ctx.tokenizer();
            ctx.setYear(t.readInt(s, 4))
                    .setMonth(t.readInt(s + 4, 2))
                    .setDayOfMonth(t.readInt(s + 6, 2))
                    .setHour(t.readInt(s + 8, 2))
                    .setMinute(t.readInt(s + 10, 2))
                    .setSecond(t.readInt(s + 12, 2));
        };
    }
The base time for relative statements.
exts/jphp-zend-ext/src/main/java/org/develnext/jphp/zend/ext/standard/date/DateTimeParser.java