code: int getOffsets(long date, int[] offsets) {
          int rawoffset = getRawOffset();
          int dstoffset = 0;
          if (inDaylightTime(new Date(date))) {
              dstoffset = getDSTSavings();
          }
          if (offsets != null) {
              offsets[0] = rawoffset;
              offsets[1] = dstoffset;
          }
          return rawoffset + dstoffset;
      }
docs: Gets the raw GMT offset and the amount of daylight saving of this
  time zone at the given time.
  @param date the milliseconds (since January 1, 1970,
  00:00:00.000 GMT) at which the time zone offset and daylight
  saving amount are found
  @param offsets an array of int where the raw GMT offset
  (offset[0]) and daylight saving amount (offset[1]) are stored,
  or null if those values are not needed. The method assumes that
  the length of the given array is two or larger.
  @return the total amount of the raw GMT offset and daylight
  saving at the specified date.
  
  @see Calendar#ZONE_OFFSET
  @see Calendar#DST_OFFSET