Here you can find the source of getCurrentTimeStamp()
public static Timestamp getCurrentTimeStamp()
//package com.java2s; import java.sql.Timestamp; import java.util.GregorianCalendar; public class Main { public static Timestamp getCurrentTimeStamp() { return new Timestamp(new GregorianCalendar().getTime().getTime()); }/*from w ww . j av a 2s.co m*/ }