@SuppressWarnings("deprecation")
    default boolean clearExpired(Instant date) {
        return clearExpired(date != null ? new Date(date.toEpochMilli()) : null);
    }
Removes all of {@link Cookie}s in this store that have expired by
the specified {@link Instant}.

@return true if any cookies were purged.
httpclient5/src/main/java/org/apache/hc/client5/http/cookie/CookieStore.java