If today is a day configured as an exception.

@return true if so.
@see #daysOfWeek
8961
public boolean isExceptionToday() {
        if (daysOfWeek != null && daysOfWeek.length > 0) {
            int dayOfWeekNow = Calendar.getInstance().get(Calendar.DAY_OF_WEEK);
            for (int exceptionDay : daysOfWeek) {
                if (exceptionDay == dayOfWeekNow) {
                    return true;
                }
            }
        }
        return false;
    }
701140
public static int calendarDay2Day(int day) {
        switch (day) {
            case Calendar.SUNDAY:
                return SU;
            case Calendar.MONDAY:
                return MO;
            case Calendar.TUESDAY:
                return TU;
            case Calendar.WEDNESDAY:
                return WE;
            case Calendar.THURSDAY:
                return TH;
            case Calendar.FRIDAY:
                return FR;
            case Calendar.SATURDAY:
                return SA;
            default:
                throw new RuntimeException("bad day of week: " + day);
        }
    }
1338627
public static boolean isBetweenDate(String startDate, String endDate, Format format, String specificDate) {
        boolean result = false;
        List<String> dateList = getDayListBetween2Day(startDate, endDate, format);
        for (String date : dateList) {
            if (date.equalsIgnoreCase(specificDate)) {
                return true;
            }
        }
        return result;
    }
1246093
public boolean hasException() {
        return Optional.ofNullable(commandResult)
                        .map(result -> StringUtils.hasText(result.getException()))
                        .orElse(false);
    }
606158
public void setWeeklyDay(Day day, boolean value)
   {
      if (value)
      {
         m_days.add(day);
      }
      else
      {
         m_days.remove(day);
      }
   }
1145181
@Nullable
    public static DayOfTheWeek valueOf(@Nullable final DayOfWeek dayOfWeek) {
        if (dayOfWeek == null) {
            return null;
        }
        final int value = dayOfWeek.getValue();
        for (final DayOfTheWeek dow : ALL) {
            if (value == dow.id) {
                return dow;
            }
        }
        throw new IllegalArgumentException("Unknown day week: " + dayOfWeek);
    }
36115
public boolean isSingleton(String exceptionName) {
        if (size != 1) {
            return false;
        }
        ObjectType e = iterator().next();
        return e.toString().equals(exceptionName);

    }
447629
public java.util.Map<String, String> getWednesday() {
        if (wednesday == null) {
            wednesday = new com.amazonaws.internal.SdkInternalMap<String, String>();
        }
        return wednesday;
    }
121053
public boolean hasException(Class<? extends Throwable> type) {
        for (Throwable exception : exceptions) {
            if (type.isInstance(exception)) {
                return true;
            }
        }
        
        return false;
    }
42055
private boolean isWorkingDay(ProjectCalendar mpxjCalendar, Day day)
   {
      boolean result = false;
      net.sf.mpxj.DayType type = mpxjCalendar.getWorkingDay(day);
      if (type == null)
      {
         type = net.sf.mpxj.DayType.DEFAULT;
      }

      switch (type)
      {
         case WORKING:
         {
            result = true;
            break;
         }

         case NON_WORKING:
         {
            result = false;
            break;
         }

         case DEFAULT:
         {
            if (mpxjCalendar.getParent() == null)
            {
               result = false;
            }
            else
            {
               result = isWorkingDay(mpxjCalendar.getParent(), day);
            }
            break;
         }
      }

      return (result);
   }
457616
public boolean inThisDay(Date theTargetDate) {
		Date[] thisDay = asDayRange();
		return theTargetDate.compareTo(thisDay[0]) >= 0 && theTargetDate.compareTo(thisDay[1]) <= 0;
	}
868416
public boolean isBefore(Day day)
  {
    if (day == null)
      throw new IllegalArgumentException("day cannot be null");

    return localDate.isBefore(day.localDate);
  }
1149917
private static int isTodayOrTomorrow(Resources r, long dayMillis,
                                         long currentMillis, long localGmtOffset) {
        int startDay = Time.getJulianDay(dayMillis, localGmtOffset);
        int currentDay = Time.getJulianDay(currentMillis, localGmtOffset);

        int days = startDay - currentDay;
        if (days == 1) {
            return TOMORROW;
        } else if (days == 0) {
            return TODAY;
        } else {
            return NONE;
        }
    }
388877
private void processCalendarExceptions(ProjectCalendar calendar, Record root)
   {
      // Retrieve exceptions
      Record exceptions = root.getChild("Exceptions");
      if (exceptions != null)
      {
         for (Record exception : exceptions.getChildren())
         {
            long daysFromEpoch = Integer.parseInt(exception.getValue().split("\\|")[1]);
            Date startEx = DateHelper.getDateFromLong(EXCEPTION_EPOCH + (daysFromEpoch * DateHelper.MS_PER_DAY));

            ProjectCalendarException pce = calendar.addCalendarException(startEx, startEx);
            for (Record exceptionHours : exception.getChildren())
            {
               addHours(pce, exceptionHours);
            }
         }
      }
   }
617572
private void processExceptionDays(ProjectCalendar mpxjCalendar, net.sf.mpxj.planner.schema.Calendar plannerCalendar) throws MPXJException
   {
      Days days = plannerCalendar.getDays();
      if (days != null)
      {
         List<net.sf.mpxj.planner.schema.Day> dayList = days.getDay();
         for (net.sf.mpxj.planner.schema.Day day : dayList)
         {
            if (day.getType().equals("day-type"))
            {
               Date exceptionDate = getDate(day.getDate());
               ProjectCalendarException exception = mpxjCalendar.addCalendarException(exceptionDate, exceptionDate);
               if (getInt(day.getId()) == 0)
               {
                  for (int hoursIndex = 0; hoursIndex < m_defaultWorkingHours.size(); hoursIndex++)
                  {
                     DateRange range = m_defaultWorkingHours.get(hoursIndex);
                     exception.addRange(range);
                  }
               }
            }
         }
      }
   }
237022
private void checkJodaGetDay() {
        int COUNT = COUNT_VERY_FAST;
        DateTime dt = new DateTime(GJChronology.getInstance());
        for (int i = 0; i < AVERAGE; i++) {
            start("Joda", "getDay");
            for (int j = 0; j < COUNT; j++) {
                int val = dt.getDayOfMonth();
                if (val == 0) {System.out.println("Anti optimise");}
            }
            end(COUNT);
        }
    }
478773
private void readExceptionDay(ProjectCalendar mpxjCalendar, ExceptedDay day)
   {
      ProjectCalendarException mpxjException = mpxjCalendar.addCalendarException(day.getDate(), day.getDate());
      if (day.isIsDayWorking())
      {
         for (Document.Calendars.Calendar.ExceptedDays.ExceptedDay.TimePeriods.TimePeriod period : day.getTimePeriods().getTimePeriod())
         {
            mpxjException.addRange(new DateRange(period.getFrom(), period.getTo()));
         }
      }
   }