燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-07-28 fedb6864b71fc8961e93fa465eb55bed95527b4a
src/main/java/com/yssh/utils/DateUtils.java
@@ -21,6 +21,8 @@
   public static String YYYYMM = "yyyyMM";
   public static String YYYYMMDD = "yyyyMMdd";
   public static String YYYYMMDDHH = "yyyyMMddHH";
   
   public static String YYYYMMDDHHMMSS = "yyyyMMddHHmmss";
@@ -83,6 +85,10 @@
   public static String getYyyyMm(Date date) {
      return new SimpleDateFormat(YYYYMM).format(date);
   }
   public static String getYyyyMmDd(Date date) {
      return new SimpleDateFormat(YYYYMMDD).format(date);
   }
   public static String getYyyyMmDdHh(Date date) {
@@ -153,13 +159,13 @@
   }
   
   /**
    * @throws
    * @Title: differHour   
    * @Description: 获取两个时间差几个小时
    * @param: @param endDate
    * @param: @param nowDate
    * @param: @return      
    * @return: long      
    * @throws
    */
   public static int differDay(Date startDate, Date endDate){
      long nd = 1000 * 24 * 60 * 60;
@@ -207,6 +213,7 @@
   }
   
   /**
    *
    */
   public static Map<Date, Date> segmentationDateByTimeQuantum(Date startDate, Date endDate, int timeQuantum,int dateType){
      LinkedHashMap<Date, Date> result = new LinkedHashMap<Date, Date>();
@@ -239,6 +246,7 @@
   
   /**
     * 获取本月第一天
    *
     * @return String
     **/
    public static Date getMonthStart() {
@@ -250,6 +258,7 @@
 
    /**
     * 获取本月最后一天
    *
     * @return String
     **/
    public static Date getMonthEnd() {