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);
}

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 ) ; }
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 .
