Here you can find the source of getRawOffsetDifference(TimeZone from, TimeZone to)
public static int getRawOffsetDifference(TimeZone from, TimeZone to)
//package com.java2s; import java.util.TimeZone; public class Main { public static int getRawOffsetDifference(TimeZone from, TimeZone to) { int offsetBefore = from.getRawOffset(); int offsetAfter = to.getRawOffset(); return offsetAfter - offsetBefore; }/*from w w w . j a va 2s .c o m*/ }