java.sql.Time descends from java.util.Date but uses only the hour, minute, and second values.
import java.text.ParseException; import java.util.Date; public class MainClass { public static void main(String[] args) throws ParseException { new java.sql.Time(new Date().getTime()); } }