Here you can find the source of getNowTimeStamp()
public static Timestamp getNowTimeStamp()
//package com.java2s; import java.sql.Timestamp; import java.util.Date; public class Main { public static Timestamp getNowTimeStamp() { // return System.currentTimeMillis(); return new Timestamp(getNow().getTime()); }//from ww w. ja v a 2s . c o m public static Date getNow() { return new Date(System.currentTimeMillis()); } }