摘要:
1. 在当前时间上加上时、分、秒@Testpublic void testAddDate(){ Date date = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); System.out.println("当前时间 :"+sdf.format(date)); Calendar c = new GregorianCalendar(); c.setTime(date); c.add(Calendar.HOUR, 1); c.add(Calen.. 阅读全文