Java TimeZone Get getRawOffsetDifference(TimeZone from, TimeZone to)

Here you can find the source of getRawOffsetDifference(TimeZone from, TimeZone to)

Description

get Raw Offset Difference

License

Open Source License

Declaration

public static int getRawOffsetDifference(TimeZone from, TimeZone to) 

Method Source Code


//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*/
}

Related

  1. getMoscowCalendar()
  2. getMoscowTimeZone()
  3. getNextHour(final String timezone)
  4. getPossibleUserTimezoneList(int userOffsetInHours)
  5. getRawOffset(String timeZoneStr)
  6. getServerTimezoneOffset()
  7. getTime(boolean lenient, TimeZone tz, int year, int month, int day, int hour, int minute, int second, boolean setMillis, int nano)
  8. getTime(final String time, final TimeZone tz)
  9. getTime(TimeZone tz, int year, int month, int day, int hour, int minute, int second)