Here you can find the source of nowTimestamp()
public static Timestamp nowTimestamp()
//package com.java2s; import java.sql.Timestamp; public class Main { public static Timestamp nowTimestamp() { return new Timestamp(System.currentTimeMillis()); }//from ww w . j a v a 2 s . com }