public static java.sql.Time toSqlTime(int hour,int minute,int second){
  java.util.Date newDate=toDate(0,0,0,hour,minute,second);
  if (newDate != null) {
    return new java.sql.Time(newDate.getTime());
  }
 else {
    return null;
  }
}

public static java . sql . Time toSqlTime ( int hour , int minute , int second ) { java . util . Date newDate = toDate ( 0 , 0 , 0 , hour , minute , second ) ; if ( newDate != null ) { return new java . sql . Time ( newDate . getTime ( ) ) ; } else { return null ; } }
makes a java . sql . time from separate ints for hour , minute , and second .
