Java tutorial
import java.util.Calendar; import java.util.SimpleTimeZone; public class Main { public static void main(String args[]) { SimpleTimeZone stobj = new SimpleTimeZone(720, "US"); // get offset int offset = stobj.getOffset(Calendar.ZONE_OFFSET); // check offset value System.out.println("Offset is : " + offset); } }