code: private long setCalendar(Calendar cal, int part, long value, long div) {
          cal.set(part, (int) (value % div));
          return value / div;
      }
docs: Sets a calendar component based on the input value. Meant to be called successively, with the
  return value used as the input value for the next call, to extract lower digits from the
  input value to be set into the calendar component.
  
  @param cal Calendar component.
  @param part Calendar component to be set.
  @param value Current value.
  @param div Modulus for value to be extracted.
  @return Original value divided by modulus.