From 1b9a01bf5000714b08a75a50dd1f5f3eab65d888 Mon Sep 17 00:00:00 2001 From: nickchange <126672920+nickchange@users.noreply.github.com> Date: 星期五, 08 十二月 2023 17:18:38 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- 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