code: public boolean isSatisfiedBy(final Date date) {
          final Calendar testDateCal = Calendar.getInstance(getTimeZone());
          testDateCal.setTime(date);
          testDateCal.set(Calendar.MILLISECOND, 0);
          final Date originalDate = testDateCal.getTime();
  
          testDateCal.add(Calendar.SECOND, -1);
  
          final Date timeAfter = getTimeAfter(testDateCal.getTime());
  
          return timeAfter != null && timeAfter.equals(originalDate);
      }
docs: Indicates whether the given date satisfies the cron expression. Note that
  milliseconds are ignored, so two Dates falling on different milliseconds
  of the same second will always have the same result here.
  
  @param date the date to evaluate
  @return a boolean indicating whether the given date satisfies the cron
  expression