Java Timestamp Convert To TimestampToDate(Integer time)

Here you can find the source of TimestampToDate(Integer time)

Description

Timestamp To Date

License

Open Source License

Declaration

public static Date TimestampToDate(Integer time) 

Method Source Code


//package com.java2s;
import java.sql.Timestamp;

import java.util.Date;

public class Main {

    public static Date TimestampToDate(Integer time) {
        long temp = (long) time * 1000;
        Timestamp ts = new Timestamp(temp);
        Date date = new Date();
        try {//from w ww.  ja v a 2s .co  m
            date = ts;
            //System.out.println(date);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return date;
    }
}

Related

  1. timestampSqlToDate(Timestamp timestamp)
  2. TimestampToBigint(String timestamp)
  3. timeStampToBytes(Timestamp ts)
  4. timestampToCalendar(java.sql.Timestamp inTime)
  5. timestampToCalendar(Timestamp time)
  6. timestampToDate(java.sql.Timestamp ts)
  7. timeStampToDate(Timestamp tim)
  8. timestampToDate(Timestamp tt)
  9. TimestampToDateStr(Timestamp tmp)