From 9486766c806fe1d9e082b2fd02ea1cc558f1b443 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期四, 08 五月 2025 09:21:57 +0800 Subject: [PATCH] bug修改 --- cloud-server-other/src/main/java/com/dsh/other/util/StudyTimeUtil.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud-server-other/src/main/java/com/dsh/other/util/StudyTimeUtil.java b/cloud-server-other/src/main/java/com/dsh/other/util/StudyTimeUtil.java index f0902d0..46dcb6c 100644 --- a/cloud-server-other/src/main/java/com/dsh/other/util/StudyTimeUtil.java +++ b/cloud-server-other/src/main/java/com/dsh/other/util/StudyTimeUtil.java @@ -14,7 +14,7 @@ } /** - * 获取两个时间的间隔(秒)Obtain the time difference between two instances (in seconds). + * 获取两个时间的间隔(秒)Obtain the time difference between two instances (in seconds). * * @param startDate 开始的时间 * @return 返回当前时间与开始时间的相差天数 @@ -24,7 +24,7 @@ SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); long startDateTime = dateFormat.parse(dateFormat.format(startDate)).getTime(); long endDateTime = dateFormat.parse(dateFormat.format(endDate)).getTime(); - int days = (int)((endDateTime - startDateTime) / (1000 * 3600 * 24)); + int days = (int) ((endDateTime - startDateTime) / (1000 * 3600 * 24)); return days; } -- Gitblit v1.7.1