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(820,"GMT");

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

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

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