Java tutorial
//package com.java2s; //License from project: Apache License import java.util.Date; import java.util.TimeZone; public class Main { public static boolean isInDaylightSavings() { return Boolean.valueOf(TimeZone.getDefault().inDaylightTime(new Date())); } }