Java tutorial
import java.util.Date; import java.util.TimeZone; public class Main { public static void main(String[] args) { TimeZone tz = TimeZone.getTimeZone("America/New_York"); System.out.println(tz.inDaylightTime(new Date())); } }