public static long toTimestampMillis(LocalDateTime dateTime) {
    return unixTimestamp(
        dateTime.getYear(),
        dateTime.getMonthValue(),
        dateTime.getDayOfMonth(),
        dateTime.getHour(),
        dateTime.getMinute(),
        dateTime.getSecond(),
        dateTime.getNano() / 1000_000);
  }
Convert unix timestamp (seconds since '1970-01-01 00:00:00' UTC) to datetime string in the
given format.
amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common/src/main/java/org/apache/amoro/flink/util/DateTimeUtils.java