Here you can find the source of getPresentTimeStamp()
public static Timestamp getPresentTimeStamp()
//package com.java2s; import java.sql.Timestamp; public class Main { public static Timestamp getPresentTimeStamp() { Timestamp ts = null;//ww w .j a va 2 s . co m java.util.Date d = new java.util.Date(); ts = new Timestamp(d.getTime()); return ts; } }