question: public static boolean isExceptionTime ( Calendar scheduleTime , ScheduleInfo scheduleInfo ) throws Exception { if ( scheduleInfo . getDateExceptions ( ) != null ) { for ( String dateException : scheduleInfo . getDateExceptions ( ) ) { DateFormat formatter = new SimpleDateFormat ( ScheduleInfo . FULL_DAYTIME_FORMAT ) ; Date date = formatter . parse ( scheduleInfo . getStartDate ( ) ) ; Calendar exceptionTime = Calendar . getInstance ( TimeZone . getTimeZone ( "UTC" ) ) ; exceptionTime . setTime ( date ) ; if ( exceptionTime . equals ( scheduleTime ) ) { log . info ( "The scheduled time {} is in exception list" , scheduleTime . toString ( ) ) ; return true ; } } } return false ; }
target:  Check if the schedule time is in exception list