Java SQL Date From convertTime2TS(long time)

Here you can find the source of convertTime2TS(long time)

Description

convert Time TS

License

Open Source License

Parameter

Parameter Description
time a parameter

Declaration

public static Timestamp convertTime2TS(long time) 

Method Source Code

//package com.java2s;
/*//from w  ww . j  a v a2 s.  c  o m
 * @(#)ConversionUtil.java
 *
 * Copyright by ObjectFrontier, Inc.,
 * 12225 Broadleaf Lane, Alpharetta, GA 30005, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of ObjectFrontier, Inc. You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of
 * the license agreement you entered into with ObjectFrontier.
 */

import java.sql.Timestamp;

public class Main {
    /**
     * 
     * @param time
     * @return
     */
    public static Timestamp convertTime2TS(long time) {

        return new Timestamp(time);
    }
}

Related

  1. convertJavaTimeToJavaSql(Object x)
  2. convertNanoToTime(long nanos)
  3. convertTime(long time)
  4. convertTime(String time)
  5. convertTime2String(long time)
  6. convertTimeToHour(long time)
  7. convertToDateTime(java.util.Date date, String time)
  8. convertToTime(Date toDate)
  9. convertToTime(java.util.Date date)