Here you can find the source of getTimeString(java.sql.Timestamp ts)
public static String getTimeString(java.sql.Timestamp ts)
//package com.java2s; public class Main { public static String getTimeString(java.sql.Timestamp ts) { java.util.Calendar calendar = java.util.Calendar.getInstance(); calendar.setTime(new java.util.Date(ts.getTime())); return calendar.get(calendar.HOUR_OF_DAY) + ":" + calendar.get(calendar.MINUTE) + ":" + calendar.get(calendar.SECOND); }//from w w w . j a v a 2 s. c o m }