SimpleTimeZone.observesDaylightTime() has the following syntax.
public boolean observesDaylightTime()
In the following code shows how to use SimpleTimeZone.observesDaylightTime() method.
import java.util.SimpleTimeZone; // w w w. j av a2s . c om public class Main { public static void main( String args[] ){ SimpleTimeZone stobj = new SimpleTimeZone(820,"US"); System.out.println(stobj.observesDaylightTime()); } }
The code above generates the following result.