Java SQL Time Format formatTime(Time time, String format)

Here you can find the source of formatTime(Time time, String format)

Description

format Time

License

Apache License

Declaration

public static String formatTime(Time time, String format) 

Method Source Code

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

import java.sql.Time;

import java.text.SimpleDateFormat;

public class Main {
    public static String formatTime(Time time, String format) {
        SimpleDateFormat sf = new SimpleDateFormat(format);
        return sf.format(time);
    }/*  w ww .  j ava  2s . co  m*/
}

Related

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