Java tutorial
import java.util.SimpleTimeZone; public class Main { public static void main(String args[]) { SimpleTimeZone stobj = new SimpleTimeZone(720, "US"); // check DST saving int dstsaving = stobj.getDSTSavings(); System.out.println("DST saving : " + dstsaving); } }