public static ZonedDateTime convertToZonedDateTime(long timestamp, ZoneId zoneId) {
    timestamp = CAST_TIMESTAMP_TO_MS.apply(timestamp);
    return ZonedDateTime.ofInstant(Instant.ofEpochMilli(timestamp), zoneId);
  }
convert duration string to millisecond, microsecond or nanosecond.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/DateTimeUtils.java