Java SQL Time From toSqlTime(long date)

Here you can find the source of toSqlTime(long date)

Description

to Sql Time

License

MIT License

Declaration

public static java.sql.Time toSqlTime(long date) 

Method Source Code

//package com.java2s;
/*!/*from  w w w. j  a  va2  s. co m*/
 * mifmi-commons4j
 * https://github.com/mifmi/mifmi-commons4j
 *
 * Copyright (c) 2015 mifmi.org and other contributors
 * Released under the MIT license
 * https://opensource.org/licenses/MIT
 */

import java.util.Date;

public class Main {
    public static java.sql.Time toSqlTime(Date date) {
        if (date == null) {
            return null;
        }
        return toSqlTime(date.getTime());
    }

    public static java.sql.Time toSqlTime(long date) {
        return new java.sql.Time(date);
    }
}

Related

  1. getDateTimeTypeString(Connection conn)
  2. toDateTime(final java.util.Date d)
  3. toDatetime(long value)
  4. toDateTimeString(java.util.Date inDate)
  5. toSQLTime(final LocalTime lt)
  6. toTime(Date value)
  7. toTime(final Date date)
  8. toTime(final Object value)
  9. toTime(int value)