Here you can find the source of nowTimestamp()
public static java.sql.Timestamp nowTimestamp()
//package com.java2s; public class Main { /**// ww w . j ava 2 s .c o m * Return a Timestamp for right now * * @return Timestamp for right now */ public static java.sql.Timestamp nowTimestamp() { return new java.sql.Timestamp(System.currentTimeMillis()); } }