mitao
2024-12-31 6d04ababede9c34da15c6b7463b97b361e4d9990
medicalWaste-common/src/main/java/com/sinata/common/utils/DateUtils.java
@@ -188,7 +188,21 @@
        long hour = diff % nd / nh;
        return hour;
    }
    /**
     * 计算天数差
     *
     * @param endDate
     * @param startTime
     * @return
     */
    public static long timeDistanceDay(Date endDate, Date startTime) {
        long nd = 1000 * 24 * 60 * 60;
        long diff = endDate.getTime() - startTime.getTime();
        long day = diff / nd;
        return day;
    }
    /**
     * 增加 LocalDateTime ==> Date
     */