Java Utililty Methods SQL Time Now

List of utility methods to do SQL Time Now

Description

The list of methods to do SQL Time Now are organized into topic(s).

Method

StringcurrentDatetime()
current Datetime
return formatDate(new Date());
TimecurrentTime()
current Time
Calendar now = new GregorianCalendar();
return time(now.get(Calendar.HOUR), now.get(Calendar.MINUTE), now.get(Calendar.SECOND),
        now.get(Calendar.MILLISECOND));
StringCurrentTimeString()
Current Time String
long t = System.currentTimeMillis();
return (new Time(t)).toString() + "." + t % 1000;
java.sql.TimegetNowSQLTime()
Gets the now SQL time.
java.sql.Time sqlTime = new java.sql.Time(getNowLong());
return sqlTime;
java.sql.TimestampgetNowTime()
get Now Time
return new java.sql.Timestamp(System.currentTimeMillis());
StringgetNowTime()
get Now Time
return new Timestamp(System.currentTimeMillis()).toString();