Java SQL Date From getCurrentTimeMillis()

Here you can find the source of getCurrentTimeMillis()

Description

get Current Time Millis

License

Apache License

Declaration

public static long getCurrentTimeMillis() 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.sql.Timestamp;

public class Main {

    public static long getCurrentTimeMillis() {
        Timestamp time = getSysDate();
        return time.getTime();
    }/*from  ww w .  j  av  a2 s  . c  o  m*/

    public static Timestamp getSysDate() {
        return new Timestamp(System.currentTimeMillis());
    }
}

Related

  1. getCurrentDateTime()
  2. getCurrentTime()
  3. getCurrentTime()
  4. getCurrentTime()
  5. getCurrentTime(String format)
  6. GetCurrFormattedDateTime(String strFormatTo)
  7. getCurrTime()
  8. getCurTime()
  9. getDatabaseLocalTime(Time databaseDate)