List of utility methods to do SQL Time Now
String | currentDatetime() current Datetime return formatDate(new Date()); |
Time | currentTime() current Time Calendar now = new GregorianCalendar(); return time(now.get(Calendar.HOUR), now.get(Calendar.MINUTE), now.get(Calendar.SECOND), now.get(Calendar.MILLISECOND)); |
String | CurrentTimeString() Current Time String long t = System.currentTimeMillis(); return (new Time(t)).toString() + "." + t % 1000; |
java.sql.Time | getNowSQLTime() Gets the now SQL time. java.sql.Time sqlTime = new java.sql.Time(getNowLong()); return sqlTime; |
java.sql.Timestamp | getNowTime() get Now Time return new java.sql.Timestamp(System.currentTimeMillis()); |
String | getNowTime() get Now Time return new Timestamp(System.currentTimeMillis()).toString(); |