java.util.SimpleTimeZone.setEndRule()


java.util.SimpleTimeZone.setEndRule()

package com.codingdict;

import java.util.*;

public class SimpleTimeZoneDemo {
   public static void main( String args[] ) {

      // create simple time zone object
      SimpleTimeZone stobj = new SimpleTimeZone(-28800000,
      "America/Los_Angeles", Calendar.AUGUST, 1,-Calendar.SUNDAY, 7200000,
      Calendar.DECEMBER, -1, Calendar.SUNDAY, 7200000, 3600000);

      // checking the initial value      
      System.out.println("Initial value : " + stobj);

      // setting end rule
      stobj.setEndRule( Calendar.MAY, 2, Calendar.TUESDAY, 3600000);

      // checking the new value      
      System.out.println("New value : " + stobj);
   }    
}