Java SQL Time Format formatTime(Date date)

Here you can find the source of formatTime(Date date)

Description

format Time

License

Apache License

Declaration

public static Time formatTime(Date date) 

Method Source Code

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

import java.sql.Time;

import java.util.Date;

public class Main {

    public static Time formatTime(Date date) {
        Time time = new Time(date.getTime());
        return time;
    }/*from ww w  .j  av a2  s  .c o  m*/
}

Related

  1. formatDateWithSlashes(java.sql.Date date)
  2. formatDateYM(Date date, String datePtn)
  3. formatDateYMD(String str, String datePtn)
  4. formatDefaultValue(Object o)
  5. formatExceptionForToolsWithLimitedCharacterSet(String exceptionLabel)
  6. formatTime(final Time time)
  7. formatTime(Time time, String format)
  8. formatTimeToFloat(Time inputTime)
  9. formatToDateStr(long millis)