Here you can find the source of timestampSqlToDate(Timestamp timestamp)
Parameter | Description |
---|---|
timestamp | a parameter |
public static Date timestampSqlToDate(Timestamp timestamp)
//package com.java2s; //License from project: Open Source License import java.sql.Timestamp; import java.util.Date; public class Main { /**/*from ww w . j a v a2s .c o m*/ * Creates new instance of java.util.Date based on timestamp. * * @param timestamp * @return */ public static Date timestampSqlToDate(Timestamp timestamp) { if (timestamp == null) { return null; } return new Date(timestamp.getTime()); } }