Here you can find the source of getSysTime()
public static Timestamp getSysTime()
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; import java.util.Calendar; public class Main { public static Timestamp getSysTime() { Timestamp sys_time = new Timestamp(Calendar.getInstance().getTimeInMillis()); return sys_time; }//ww w.j a v a2s. co m }