Here you can find the source of sqlTimestampToDate(Timestamp t)
public static java.util.Date sqlTimestampToDate(Timestamp t)
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; public class Main { public static java.util.Date sqlTimestampToDate(Timestamp t) { return t != null ? new java.util.Date(Math.round(t.getTime() + t.getNanos() / 1000000D)) : null; }/*from w w w . j a va 2 s. co m*/ }