Java TimeZone Get getDiffTimeZoneRawOffset(String timeZoneId)

Here you can find the source of getDiffTimeZoneRawOffset(String timeZoneId)

Description

get Diff Time Zone Raw Offset

License

Apache License

Declaration

public static int getDiffTimeZoneRawOffset(String timeZoneId) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {

    public static int getDiffTimeZoneRawOffset(String timeZoneId) {
        return TimeZone.getDefault().getRawOffset() - TimeZone.getTimeZone(timeZoneId).getRawOffset();
    }//  w w w  .  j a v a  2  s. c om
}

Related

  1. getCurrentTimezoneOffset()
  2. getDateInTimeZone(final Date date, final TimeZone timeZone)
  3. getDefaultTimeZoneOffset()
  4. getDefaultTimeZoneRawOffset()
  5. getDefaultTimeZoneString()
  6. getDisplayDate(Date date, TimeZone tz, Locale inLocale, int style, boolean includeTime)
  7. getDSTSavings(TimeZone tz)
  8. getDSTTime(TimeZone tz, Date date)
  9. getEnd(String date, TimeZone tz)