java.util.TimeZone.inDaylightTime(Date date) 方法


java.util.TimeZone.inDaylightTime(Date date) 方法

package com.codingdict;

import java.util.*;

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

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

      // create date object
      Date date = new Date(2008 , 05, 28);

      // checking day light
      System.out.println("In daylight time:" +timezoneone.inDaylightTime(date));
   }    
}