Here you can find the source of toSqlTime(Timestamp timestamp)
public static java.sql.Time toSqlTime(Timestamp timestamp)
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; public class Main { public static java.sql.Time toSqlTime(Timestamp timestamp) { return new java.sql.Time(timestamp.getTime()); }/* w w w . j a v a2 s . co m*/ }