java.util.SimpleTimeZone.setStartRule()


java.util.SimpleTimeZone.setStartRule()

package com.codingdict;

import java.util.*;

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

      // create simple time zone object
      SimpleTimeZone stobj = new SimpleTimeZone(820,"GMT");

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

      // setting start rule   
      stobj.setStartRule( Calendar.MAY, 2, 3600000);   

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