Here you can find the source of sqlTime()
public static java.sql.Time sqlTime()
//package com.java2s; //License from project: Open Source License import java.util.Date; public class Main { public static java.sql.Time sqlTime() { return sqlTime(null); }/* w ww. ja v a 2s. c o m*/ public static java.sql.Time sqlTime(java.util.Date date) { if (date != null) { return new java.sql.Time(date.getTime()); } return new java.sql.Time(now().getTime()); } public static java.util.Date now() { return new Date(); } }