Here you can find the source of getTimeNumberFromSqlTime(Time time)
public static int getTimeNumberFromSqlTime(Time time)
//package com.java2s; import java.sql.Time; import java.util.Calendar; public class Main { public static int getTimeNumberFromSqlTime(Time time) { Calendar calendar = Calendar.getInstance(); calendar.setTime(time);/*from www. j av a 2 s . co m*/ final int hour = calendar.get(Calendar.HOUR); final int minute = calendar.get(Calendar.MINUTE); final int second = calendar.get(Calendar.SECOND); final int milli = calendar.get(Calendar.MILLISECOND); return hour * 60 * 60 * 1000 + minute * 60 * 1000 + second * 1000 + milli; } }