1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Merge pull request #1230 from rain7fine11/patch-6

trim
This commit is contained in:
Guide哥 2021-06-07 10:44:50 +08:00 committed by GitHub
commit 0af6c51134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -934,7 +934,7 @@ public void getDayNew() {
//当年最后一天 //当年最后一天
LocalDate lastday = today.with(TemporalAdjusters.lastDayOfYear()); LocalDate lastday = today.with(TemporalAdjusters.lastDayOfYear());
//2021年最后一个周日如果用Calendar是不得烦死。 //2021年最后一个周日如果用Calendar是不得烦死。
LocalDate lastMondayOf2021 = LocalDate.parse("2021-12- 31").with(TemporalAdjusters.lastInMonth(DayOfWeek.SUNDAY)); LocalDate lastMondayOf2021 = LocalDate.parse("2021-12-31").with(TemporalAdjusters.lastInMonth(DayOfWeek.SUNDAY));
} }
``` ```