Timestamp time1 = new Timestamp(System.currentTimeMillis());
		
Timestamp time2 = new Timestamp(new Date().getTime());
 
Timestamp time3 = new Timestamp(Calendar.getInstance().getTimeInMillis());
		
//不建议使用
Timestamp time4 = new Timestamp(2011-1900,11,11,11,11,11,0);

原文地址:

http://vsp.iteye.com/blog/1253774


本文转载:CSDN博客