presto-teradata-functions/src/main/java/io/prestosql/teradata/functions/TeradataDateFunctions.java/TeradataDateFunctions/parseMillis
class TeradataDateFunctions:    private static long parseMillis(TimeZoneKey timeZoneKey, Locale locale, Slice dateTime, Slice formatString)
    {
        DateTimeFormatter formatter = DATETIME_FORMATTER_CACHE.get(formatString)
                .withChronology(CHRONOLOGIES[timeZoneKey.getKey()])
                .withLocale(locale);

        try {
            return formatter.parseMillis(dateTime.toString(UTF_8));
        }
        catch (IllegalArgumentException e) {
            throw new PrestoException(INVALID_FUNCTION_ARGUMENT, e);
        }
    }