public static Long getRemainingSeconds() {
LocalDateTime midnight = LocalDateTime.now().plusDays(1).withHour(0).withMinute(0).withSecond(0).withNano(0);
return ChronoUnit.SECONDS.between(LocalDateTime.now(),midnight);
}
获取一天当中剩余seconds
最新推荐文章于 2024-07-20 23:59:39 发布