LocalDate today = LocalDate.now();
// 2020-01-01 获取本月第一天
LocalDate firstDayOfMonth = LocalDate.of(today.getYear(), today.getMonth(), 1);
// 2020-01-31 获取本月最后一天
LocalDate lastDayOfMonth = today.with(TemporalAdjusters.lastDayOfMonth());
// 获取从 1970年 1月 1日 0时 0分 0秒到现在的毫秒数
// 可取代System.currentTimeMillis()
Clock.systemDefaultZone().millis()