Here you can find the source of getRawOffset(String timeZoneStr)
public static long getRawOffset(String timeZoneStr)
//package com.java2s; //License from project: Apache License import java.util.TimeZone; public class Main { public static long getRawOffset(String timeZoneStr) { return TimeZone.getTimeZone(timeZoneStr).getRawOffset(); }/* w w w . j av a 2 s. c om*/ }