code: public long set(long instant, int year) {
          FieldUtils.verifyValueBounds(this, year, 1, getMaximumValue());
          if (iChronology.getYear(instant) <= 0) {
              year = 1 - year;
          }
          return super.set(instant, year);
      }
docs: Set the year component of the specified time instant.
  
  @param instant  the time instant in millis to update.
  @param year  the year (0,292278994) to update the time to.
  @return the updated time instant.
  @throws IllegalArgumentException  if year is invalid.