@Deprecated
    @Override
    public boolean isExpired(final Date date) {
        Args.notNull(date, "Date");
        return cookieExpiryDate != null
                && cookieExpiryDate.compareTo(DateUtils.toInstant(date)) <= 0;
    }
Returns true if this cookie has expired.
@param date Current time

@return {@code true} if the cookie has expired.

@deprecated Use {@link #isExpired(Instant)}
httpclient5/src/main/java/org/apache/hc/client5/http/impl/cookie/BasicClientCookie.java