public static int toInternal(java.sql.Time time) {
    long ts = time.getTime() + LOCAL_TZ.getOffset(time.getTime());
    return (int) (ts % MILLIS_PER_DAY);
  }
Converts the Java type used for UDF parameters of SQL TIME type ({@link java.sql.Time}) to
internal representation (int).

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