标签:now() int lda print oca system day cal new
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);
标签:now() int lda print oca system day cal new
原文地址:https://www.cnblogs.com/metu/p/10340312.html