JSP获取系统时时

JSP获取系统时刻获得系统此刻时间的代码?Timestamp stamp new Timestamp(new Date().getTime())?Simple

JSP获取系统时刻

获得系统此刻时间的代码
?Timestamp stamp = new Timestamp(new Date().getTime());
?SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
?String thistime = format.format(stamp);

??System.out.println(thistime);