摘要: 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.. 阅读全文
posted @ 2013-04-20 13:51 zhgs_cq 阅读(103) 评论(0) 推荐(0) 编辑