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