Here you can find the source of getCurrentSQLTimestamp()
public static final java.sql.Timestamp getCurrentSQLTimestamp()
//package com.java2s; //License from project: Apache License import java.util.Calendar; public class Main { /**//from w ww .ja v a2 s. c om * Gets the current SQL timestamp. * * @return the current SQL timestamp */ public static final java.sql.Timestamp getCurrentSQLTimestamp() { Calendar c = Calendar.getInstance(); java.sql.Timestamp t = new java.sql.Timestamp(c.getTimeInMillis()); return t; } }