public static String setTimeFormat(String newTimeFormat) {
    String timeFormat;
    switch (newTimeFormat.trim().toLowerCase()) {
      case "long":
      case "number":
      case DEFAULT_TIME_FORMAT:
      case "iso8601":
        timeFormat = newTimeFormat.trim().toLowerCase();
        break;
      default:
        // use java default SimpleDateFormat to check whether input time format is legal
        // if illegal, it will throw an exception
        new SimpleDateFormat(newTimeFormat.trim());
        timeFormat = newTimeFormat;
        break;
    }
    return timeFormat;
  }
Convert from {@link TSStatusCode} to {@link TSStatus}, which has message appended with existing
status message

@param tsStatusCode status type
@param message appending message
iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/RpcUtils.java