获得系统此刻时间的代码
?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);
获得系统此刻时间的代码
?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);