code: @Override
      public int getOffset(int era, int year, int month, int day, int dayOfWeek,
              int milliseconds) {
          if (era == GregorianCalendar.BC) {
              // Convert to extended year
              year = 1 - year;
          }
          long time = Grego.fieldsToDay(year, month, day) * Grego.MILLIS_PER_DAY + milliseconds;
          int[] offsets = new int[2];
          getOffset(time, true, LOCAL_DST, LOCAL_STD, offsets);
          return (offsets[0] + offsets[1]);
      }
docs: {@inheritDoc}