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

被折叠的 条评论
为什么被折叠?