java.util.SimpleTimeZone.getRawOffset() 方法


java.util.SimpleTimeZone.getRawOffset() 方法

package com.codingdict;

import java.util.*;

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

      // create simple time zone object
      SimpleTimeZone stobj = new SimpleTimeZone(720,"INDIA");

      // get raw offset
      int offset = stobj.getRawOffset();

      // check raw offset value       
      System.out.println("Raw Offset is : " + offset);
   }    
}