LocalDate date = LocalDate.now();
LocalDate newDate = date.plus(-31, ChronoUnit.DAYS);
System.out.println("newDate=" + newDate);
LocalDateTime date=LocalDateTime.now();
LocalDateTime newDate = date.plus(-31, ChronoUnit.DAYS);
LocalDateTime newDate2 = newDate.plus(1, ChronoUnit.HOURS);
米兔斯基:
http://www.cnblogs.com/metu/