java.util.TimeZone.useDaylightTime() 方法


java.util.TimeZone.useDaylightTime() 方法

package com.codingdict;

import java.util.*;

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

      // create time zone object
      TimeZone tzone = TimeZone.getDefault();      

      // checking daylight time
      System.out.println("Using day light time :" +tzone.useDaylightTime());
   }    
}