Here you can find the source of getNowTimestamp()
public static java.sql.Timestamp getNowTimestamp()
//package com.java2s; //License from project: Apache License import java.util.Calendar; public class Main { public static java.sql.Timestamp getNowTimestamp() { Calendar cal1 = Calendar.getInstance(); return new java.sql.Timestamp(cal1.getTimeInMillis()); }// w ww .ja va2 s.c o m }