Java tutorial
import java.util.Date; import java.util.SimpleTimeZone; public class Main { 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); } }