@Override
    public long convertToTimeMillis(String value) {
        @SuppressWarnings("UseOfObsoleteDateTimeApi")
        Date date = null;
        try {
            date = DateFormatter.parseHttpDate(value);
        } catch (Exception ignored) {
            // `parseHttpDate()` can raise an exception rather than returning `null`
            // when the given value has more than 64 characters.
        }

        if (date == null) {
            throw new IllegalArgumentException("not a date: " + value);
        }
        return date.getTime();
    }
Converts to/from native types, general {@link Object}, and {@link CharSequence}s.
core/src/main/java/com/linecorp/armeria/common/StringValueConverter.java