Here you can find the source of toSqlTime(long date)
public static java.sql.Time toSqlTime(long date)
//package com.java2s; /*!/*from w w w. j a va2 s. co m*/ * mifmi-commons4j * https://github.com/mifmi/mifmi-commons4j * * Copyright (c) 2015 mifmi.org and other contributors * Released under the MIT license * https://opensource.org/licenses/MIT */ import java.util.Date; public class Main { public static java.sql.Time toSqlTime(Date date) { if (date == null) { return null; } return toSqlTime(date.getTime()); } public static java.sql.Time toSqlTime(long date) { return new java.sql.Time(date); } }