每天的三点

This commit is contained in:
2023-12-16 17:21:48 +08:00
parent 14fc9a6b1d
commit 6c7ffc9164

View File

@@ -54,7 +54,7 @@ public class AppletVo {
SimpleDateFormat sdf =new SimpleDateFormat("yyyy-MM-dd");
SimpleDateFormat sdf1 =new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
LocalDate today = LocalDate.now(); // 获取今天的日期
LocalTime timeOfDay = LocalTime.of(16, 0); // 设置下午4点的小时数为16分钟数为0
LocalTime timeOfDay = LocalTime.of(15, 0); // 设置下午3点的小时数为15分钟数为0
LocalDateTime dateAndTime = LocalDateTime.of(today, timeOfDay); // 将日期和时间合并成完整的日期时间对象
ZoneId zoneId = ZoneId.systemDefault();