Java tutorial
//package com.java2s; import java.util.TimeZone; public class Main { public static int getTimeZone() { return TimeZone.getDefault().getRawOffset() / (1000 * 3600); } }