@SuppressWarnings("deprecation")
    default boolean isExpired(final Instant date) {
        return isExpired(date != null ? new Date(date.toEpochMilli()) : null);
    }
Returns true if this cookie has expired.

@param date Current time
@return {@code true} if the cookie has expired.
@since 5.2
httpclient5/src/main/java/org/apache/hc/client5/http/cookie/Cookie.java