Java SimpleTimeZone .observesDaylightTime ()
Syntax
SimpleTimeZone.observesDaylightTime() has the following syntax.
public boolean observesDaylightTime()
Example
In the following code shows how to use SimpleTimeZone.observesDaylightTime() method.
import java.util.SimpleTimeZone;
/*from w w w. j a v a 2 s . co m*/
public class Main {
public static void main( String args[] ){
SimpleTimeZone stobj = new SimpleTimeZone(820,"US");
System.out.println(stobj.observesDaylightTime());
}
}
Home »
Java Tutorial »
java.util »
Java Tutorial »
java.util »