code: public void setEndRule(int endMonth, int endDay, int endDayOfWeek,
                             int endTime)
      {
          this.endMonth = endMonth;
          this.endDay = endDay;
          this.endDayOfWeek = endDayOfWeek;
          this.endTime = endTime;
          this.endTimeMode = WALL_TIME;
          decodeEndRule();
          invalidateCache();
      }
docs: Sets the daylight saving time end rule. For example, if daylight saving time
  ends on the last Sunday in October at 2 am in wall clock time,
  you can set the end rule by calling:
  <code>setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*60*60*1000);</code>
  
  @param endMonth        The daylight saving time ending month. Month is
  a {@link Calendar#MONTH MONTH} field
  value (0-based. e.g., 9 for October).
  @param endDay          The day of the month on which the daylight saving time ends.
  See the class description for the special cases of this parameter.
  @param endDayOfWeek    The daylight saving time ending day-of-week.
  See the class description for the special cases of this parameter.
  @param endTime         The daylight saving ending time in local wall clock time,
  (in milliseconds within the day) which is local daylight
  time in this case.
  @exception IllegalArgumentException if the <code>endMonth</code>, <code>endDay</code>,
  <code>endDayOfWeek</code>, or <code>endTime</code> parameters are out of range