Java tutorial
import java.util.Calendar; import java.util.SimpleTimeZone; public class Main { public static void main(String args[]) { SimpleTimeZone stobj = new SimpleTimeZone(820, "US"); // checking initial value System.out.println("Initial value: " + stobj); // setting start rule stobj.setStartRule(Calendar.MAY, 2, 2, 3600000, true); // checking the new value System.out.println("Final value : " + stobj); } }