Here you can find the source of extractDateSystemTimeStamp()
public static Timestamp extractDateSystemTimeStamp()
//package com.java2s; //License from project: Open Source License import java.sql.Timestamp; import java.util.Calendar; public class Main { /**//from ww w . j av a 2 s . c om * * Extract date form system and converts into TimeStamp SQL type * * @return TimeStamp */ public static Timestamp extractDateSystemTimeStamp() { Calendar calendario = Calendar.getInstance(); Timestamp timestamp = new Timestamp(calendario.getTimeInMillis()); return timestamp; } }