protected void normalizeSecondsAndNanos() {
    if (totalSeconds > 0 && nanos < 0) {
      --totalSeconds;
      nanos += IntervalDayTimeUtils.NANOS_PER_SEC;
    } else if (totalSeconds < 0 && nanos > 0) {
      ++totalSeconds;
      nanos -= IntervalDayTimeUtils.NANOS_PER_SEC;
    }
  }
Ensures that the seconds and nanoseconds fields have consistent sign
storage-api/src/java/org/apache/hadoop/hive/common/type/HiveIntervalDayTime.java