Here you can find the source of getCurTimestamp()
public static java.sql.Timestamp getCurTimestamp()
//package com.java2s; //License from project: Open Source License public class Main { public static java.sql.Timestamp getCurTimestamp() { java.util.Date today = new java.util.Date(); java.sql.Timestamp ts = new java.sql.Timestamp(today.getTime()); return ts; }//from ww w . ja va2s . co m }