日期:2014-05-19 浏览次数:20786 次
Calendar calendar = Calendar.getInstance(); calendar.set(2012, 8, 17, 10, 30, 00); calendar.add(Calendar.MINUTE, -(2 * 60 + 45)); Date date = calendar.getTime(); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); System.out.println(df.format(date));