code: public void setEndRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time) {
          if (isFrozen()) {
              throw new UnsupportedOperationException("Attempt to modify a frozen SimpleTimeZone instance.");
          }
  
          getSTZInfo().setEnd(month, dayOfWeekInMonth, dayOfWeek, time, -1, false);
          setEndRule(month, dayOfWeekInMonth, dayOfWeek, time, WALL_TIME);
      }
docs: Sets the daylight savings ending rule. For example, if Daylight Savings Time
  ends at the last (-1) Sunday in October, at 2 AM in standard time,
  you can set the end rule by calling:
  <code>setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*60*60*1000);</code>
  
  @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. Please see the member
  description for an example.
  @param dayOfWeek         The daylight savings ending day-of-week. Please
  see the member description for an example.
  @param time              The daylight savings ending time in local wall time,
  which is daylight time in this case. Please see the
  member description for an example.
  @throws IllegalArgumentException the month, dayOfWeekInMonth,
  dayOfWeek, or time parameters are out of range