Java SQL Time Now getNowSQLTime()

Here you can find the source of getNowSQLTime()

Description

Gets the now SQL time.

License

LGPL

Return

the now SQL time

Declaration

public static java.sql.Time getNowSQLTime() 

Method Source Code

//package com.java2s;
/**//from  ww w.  ja  v  a2 s .  co m
 * Highlights words in a string. Words matching ignores case. The actual
 * higlighting method is specified with the start and end higlight tags.
 * Those might be beginning and ending HTML bold tags, or anything else.
 * <p>
 * 
 * This method is under the Jive Open Source Software License and was
 * written by Mark Imbriaco.
 *
 * @param string
 *            the String to highlight words in.
 * @return a new String with the specified words highlighted.
 */

public class Main {
    /**
     * Gets the now SQL time.
     *
     * @return the now SQL time
     */
    public static java.sql.Time getNowSQLTime() {
        java.sql.Time sqlTime = new java.sql.Time(getNowLong());
        return sqlTime;
    }

    /**
     * Gets the now long.
     *
     * @return the now long
     */
    public static long getNowLong() {
        long nCurrentTime = System.currentTimeMillis();
        return nCurrentTime;
    }
}

Related

  1. currentDatetime()
  2. currentTime()
  3. CurrentTimeString()
  4. getNowTime()
  5. getNowTime()