@TestOnly
  public static long convertDurationStrToLongForTest(
      long value, String unit, String timestampPrecision) {
    return convertDurationStrToLong(-1, value, unit, timestampPrecision);
  }
convert duration string to time value.

@param duration represent duration string like: 12d8m9ns, 1y1mo, etc.
@param convertYearToMonth if we need convert year to month. eg: 1y -> 12mo
@return time in milliseconds, microseconds, or nanoseconds depending on the profile
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/DateTimeUtils.java