public static long getTimePartitionUpperBound(long time) {
    if (time >= timePartitionUpperBoundWithoutOverflow) {
      return Long.MAX_VALUE;
    }
    long lowerBound = getTimePartitionLowerBound(time);
    return lowerBound == Long.MIN_VALUE
        ? timePartitionLowerBoundWithoutOverflow
        : lowerBound + timePartitionInterval;
  }
Time range for dividing database, the time unit is the same with IoTDB's TimestampPrecision
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/TimePartitionUtils.java