java.util.SimpleTimeZone.setDSTSavings() 方法


java.util.SimpleTimeZone.setDSTSavings() 方法

package com.codingdict;

import java.util.*;

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

      // create simple time zone object
      SimpleTimeZone stobj = new SimpleTimeZone(-28800000, "India",
      Calendar.MAY, 1,-Calendar.SUNDAY, 7200000, Calendar.OCTOBER, -1,
      Calendar.MONDAY, 7200000, 3600000);

      // setting DST saving time
      stobj.setDSTSavings(5400000);

      // checking the value      
      System.out.println("DST saving value : " + stobj.getDSTSavings());
   }     
}