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;

public class Main {

    public static String getTime() {
        java.util.Date dt = new java.util.Date();
        java.sql.Timestamp ts = new java.sql.Timestamp(dt.getTime());
        String time = ts.toString();
        return time.substring(0, 19);
    }//from  www .ja  va2s . c o  m
}

Related

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