Java SQL Date From getCurrentTime()

Here you can find the source of getCurrentTime()

Description

get Current Time

License

Open Source License

Declaration

public static Timestamp getCurrentTime() 

Method Source Code


//package com.java2s;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Locale;

public class Main {
    public static Timestamp getCurrentTime() {
        long time = Calendar.getInstance(Locale.CANADA).getTime().getTime();
        return new Timestamp(time);
    }//w ww  .ja  v  a  2s  . c  o m
}

Related

  1. getCNTimezone()
  2. getCurAllTime()
  3. getCurrDateTime()
  4. getCurrentDateTime()
  5. getCurrentTime()
  6. getCurrentTime()
  7. getCurrentTime(String format)
  8. getCurrentTimeMillis()
  9. GetCurrFormattedDateTime(String strFormatTo)