62,614
社区成员
发帖
与我相关
我的任务
分享
Date currentDate = new Date();
Date result = new Date(currentDate.getTime() - 30 * 1000)
Date currentDate = new Date();
SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss");
System.out.println(format.format(currentDate));
System.out.println(format.format(new Date(currentDate.getTime() - 30 * 1000)));