code: private void setEndRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time, int mode){
          assert (!isFrozen());
  
          endMonth     = month;
          endDay       = dayOfWeekInMonth;
          endDayOfWeek = dayOfWeek;
          endTime      = time;
          endTimeMode  = mode;
          decodeEndRule();
  
          transitionRulesInitialized = false;
      }
docs: Sets the daylight savings ending rule. For example, in the U.S., Daylight
  Savings Time ends at the first Sunday in November, at 2 AM in standard time.
  Therefore, you can set the end rule by calling:
  setEndRule(Calendar.NOVEMBER, 1, Calendar.SUNDAY, 2*60*60*1000);
  Various other types of rules can be specified by manipulating the dayOfWeek
  and dayOfWeekInMonth parameters.  For complete details, see the documentation
  for setStartRule().
  @param month the daylight savings ending month. Month is 0-based.
  eg, 0 for January.
  @param dayOfWeekInMonth the daylight savings ending
  day-of-week-in-month. See setStartRule() for a complete explanation.
  @param dayOfWeek the daylight savings ending day-of-week. See setStartRule()
  for a complete explanation.
  @param time the daylight savings ending time. Please see the member
  description for an example.