public static int timeToInternal(java.sql.Time time, TimeZone tz) {
		long ts = time.getTime() + tz.getOffset(time.getTime());
		return (int) (ts % MILLIS_PER_DAY);
	}
public static int timeToInternal ( java . sql . Time time , TimeZone tz ) { long ts = time . getTime ( ) + 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 #internalToTime(int)}.