public static TimeDuration makeTimeDuration(int days, int millis) {
    while (millis < (0 - Stella.MILLIS_PER_DAY)) {
      millis = millis + Stella.MILLIS_PER_DAY;
      days = days - 1;
    }
    while (millis > Stella.MILLIS_PER_DAY) {
      millis = millis - Stella.MILLIS_PER_DAY;
      days = days + 1;
    }
    if (days < 0) {
      if (!(millis <= 0)) {
        days = days + 1;
        millis = millis - Stella.MILLIS_PER_DAY;
      }
    }
    else if (days > 0) {
      if (!(millis >= 0)) {
        days = days - 1;
        millis = millis + Stella.MILLIS_PER_DAY;
      }
    }
    else {
    }
    { TimeDuration self000 = TimeDuration.newTimeDuration();

      self000.days = days;
      self000.millis = millis;
      { TimeDuration value000 = self000;

        return (value000);
      }
    }
  }