Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.TimeZone; public class Main { public final static String GMT = "GMT"; private static int getDiffTimeZoneRawOffset() { return TimeZone.getDefault().getRawOffset() - TimeZone.getTimeZone(GMT).getRawOffset(); } }