Java SQL Time Create getTime()

Here you can find the source of getTime()

Description

get Time

License

Open Source License

Declaration

public static String getTime() 

Method Source Code


//package com.java2s;
import java.sql.Timestamp;

import java.util.Calendar;

public class Main {
    public static String getTime() {
        Timestamp time = new Timestamp(Calendar.getInstance().getTime().getTime());
        return time.toString();
    }/*from  ww w .  j  a v a 2s . co m*/
}

Related

  1. getSystemCurrentTimeMillis()
  2. getSystemTimeGMTToday()
  3. getSysTime()
  4. getThisWeekStartTime()
  5. getTime()
  6. getTime(final int hour, final int minute, final int second)
  7. getTime(GregorianCalendar cal)
  8. getTime(java.util.Date date)
  9. getTime(long time)