java.util.SimpleTimeZone.setRawOffset() 方法


java.util.SimpleTimeZone.setRawOffset() 方法

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 raw offset: " + stobj.getRawOffset());

      // setting raw offset   
      stobj.setRawOffset(7200000);      

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