获取某天某个时间点的时间戳,以获取第二天0点0分0秒时间点为例
private static long getExpireTimeStamp() {
// 获取明天零点时间戳
LocalDate localDate = LocalDate.now();
// 当前日期+1
localDate = localDate.plusDays(1);
LocalDateTime dateTime = LocalDateTime.of(localDate.getYear(), localDate.getMonth(), localDate.getDayOfMonth(), 0, 0, 0);
long timestamp = dateTime.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli();
return timestamp;
}