@Test
  public void convertDatetimeStrToLongTest4() {
    zoneOffset = ZoneOffset.UTC;
    try {
      DateTimeUtils.convertDatetimeStrToLong("1999-02-29T00:00:00.000", zoneOffset, 0, "ms");
      fail();
    } catch (Exception e) {
      assertEquals(
          "Text '1999-02-29T00:00:00.000+00:00' could not be parsed: Invalid date 'February 29' as '1999' is not a leap year",
          e.getMessage());
    }
  }
Test convertDatetimeStrToLong() method with different time precision.
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/utils/DateTimeUtilsTest.java