protected boolean isDateValid(final Instant issueInstant, final long interval) {
        val now = Instant.now();
        val before = now.plusSeconds(acceptedSkew);
        val after = now.minusSeconds(acceptedSkew + interval);

        val issueInstanceUtc = Instant.now();

        val isDateValid = issueInstanceUtc.isBefore(before) && issueInstanceUtc.isAfter(after);
        if (!isDateValid) {
            logger.warn("interval={},before={},after={},issueInstant={}", interval, before, after, issueInstanceUtc);
        }
        return isDateValid;
    }
<p>isDateValid.</p>

@param issueInstant a {@link Instant} object
@param interval a long
@return a boolean
pac4j-saml/src/main/java/org/pac4j/saml/profile/impl/AbstractSAML2ResponseValidator.java