public static int toInternal(LocalTime time) {
    return time.getHour() * (int) MILLIS_PER_HOUR
        + time.getMinute() * (int) MILLIS_PER_MINUTE
        + time.getSecond() * (int) MILLIS_PER_SECOND
        + time.getNano() / 1000_000;
  }
Converts the Java type used for UDF parameters of SQL TIMESTAMP type ({@link Timestamp}) to
internal representation (long).

<p>Converse of {@link #toSQLTimestamp(long)}.
amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common/src/main/java/org/apache/amoro/flink/util/DateTimeUtils.java