Calendar calendar = Calendar.getInstance(); calendar.setTime(new Date()); calendar.add(Calendar.YEAR, -3); System.out.println(calendar.getTime());
年份相加减
最新推荐文章于 2022-04-27 14:39:54 发布
Calendar calendar = Calendar.getInstance(); calendar.setTime(new Date()); calendar.add(Calendar.YEAR, -3); System.out.println(calendar.getTime());