code: private void writeCalendarException(ProjectCalendar parentCalendar, ProjectCalendarException record) throws IOException
     {
        m_buffer.setLength(0);
        Calendar stepDay = DateHelper.popCalendar(record.getFromDate()); // Start at From Date, then step through days...
        Calendar lastDay = DateHelper.popCalendar(record.getToDate()); // last day in this exception
  
        m_buffer.append("HOLI ");
        m_buffer.append(SDEFmethods.lset(parentCalendar.getUniqueID().toString(), 2));
  
        while (stepDay.compareTo(lastDay) <= 0)
        {
           m_buffer.append(m_formatter.format(stepDay.getTime()).toUpperCase() + " ");
           stepDay.add(Calendar.DAY_OF_MONTH, 1);
        }
        m_writer.println(m_buffer.toString());
        
        DateHelper.pushCalendar(stepDay);
        DateHelper.pushCalendar(lastDay);
     }
docs: Write a calendar exception.
  
  @param parentCalendar parent calendar instance
  @param record calendar exception instance
  @throws IOException