List of usage examples for java.util SimpleTimeZone inDaylightTime
public boolean inDaylightTime(Date date)
From source file:Main.java
public static void main(String args[]) { SimpleTimeZone stobj1 = new SimpleTimeZone(820, "GMT"); // create date Date date = new Date(); // check day light boolean daylight = stobj1.inDaylightTime(date); // checking the value of day light System.out.println("Is in day light : " + daylight); }