Java TimeZone .observesDaylightTime ()
Syntax
TimeZone.observesDaylightTime() has the following syntax.
public boolean observesDaylightTime()
Example
In the following code shows how to use TimeZone.observesDaylightTime() method.
import java.util.TimeZone;
//w w w. ja va 2 s.c o m
public class Main {
public static void main( String args[] ){
TimeZone timezonedefault = TimeZone.getDefault();
System.out.println(timezonedefault.observesDaylightTime());
}
}
The code above generates the following result.
Home »
Java Tutorial »
java.util »
Java Tutorial »
java.util »