Java Timestamp timestamp(Long param)

Here you can find the source of timestamp(Long param)

Description

Converts Long value to appropriate SQL timestamp parameter.

License

Open Source License

Declaration

public static Timestamp timestamp(Long param) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.sql.Timestamp;

public class Main {
    /**/*from  w w w . jav  a2 s.  co m*/
     * Converts {@link Long} value to appropriate SQL timestamp parameter.
     */
    public static Timestamp timestamp(Long param) {
        return param != null ? new Timestamp(param) : null;
    }
}

Related

  1. strToTimestamp(String dateStr)
  2. strToTimestamp(String i_Today, String i_Hour, String i_Minute)
  3. StrToTimestamp(String timestampStr,String pattern)
  4. timestamp()
  5. timestamp(int year, int month, int day, int hour, int minute, int second, int nanosecond)
  6. timestampInMs()
  7. timestampIntToTimestamp(long timestampInt)
  8. timestampIsEquals(Timestamp timestamp1, Timestamp timestamp2)
  9. TimeStampMonthDayYear(Timestamp timestamp)