Java SQL Time Now CurrentTimeString()

Here you can find the source of CurrentTimeString()

Description

Current Time String

License

Open Source License

Declaration

public static String CurrentTimeString() 

Method Source Code

//package com.java2s;
/**//  w  w  w. jav  a2 s  . c om
 * CEDP: Computer Evaluator for Dependability and Performance
 * This file is distributed under the University of Illinois Open Source
 * License. See LICENSE.TXT for details.
 */

import java.sql.Time;

public class Main {
    public static String CurrentTimeString() {
        long t = System.currentTimeMillis();
        return (new Time(t)).toString() + "." + t % 1000;
    }
}

Related

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