考勤统计与工种
This commit is contained in:
		| @ -1,14 +1,15 @@ | ||||
| package com.ruoyi.common.utils; | ||||
|  | ||||
| import org.apache.commons.lang3.time.DateFormatUtils; | ||||
|  | ||||
| import java.lang.management.ManagementFactory; | ||||
| import java.text.ParseException; | ||||
| import java.text.SimpleDateFormat; | ||||
| import java.util.Date; | ||||
| import org.apache.commons.lang3.time.DateFormatUtils; | ||||
|  | ||||
| /** | ||||
|  * 时间工具类 | ||||
|  *  | ||||
|  * | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public class DateUtils extends org.apache.commons.lang3.time.DateUtils | ||||
| @ -22,15 +23,15 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils | ||||
|     public static String YYYYMMDDHHMMSS = "yyyyMMddHHmmss"; | ||||
|  | ||||
|     public static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss"; | ||||
|      | ||||
|  | ||||
|     private static String[] parsePatterns = { | ||||
|             "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM",  | ||||
|             "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM", | ||||
|             "yyyy/MM/dd", "yyyy/MM/dd HH:mm:ss", "yyyy/MM/dd HH:mm", "yyyy/MM", | ||||
|             "yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss", "yyyy.MM.dd HH:mm", "yyyy.MM"}; | ||||
|  | ||||
|     /** | ||||
|      * 获取当前Date型日期 | ||||
|      *  | ||||
|      * | ||||
|      * @return Date() 当前日期 | ||||
|      */ | ||||
|     public static Date getNowDate() | ||||
| @ -40,7 +41,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils | ||||
|  | ||||
|     /** | ||||
|      * 获取当前日期, 默认格式为yyyy-MM-dd | ||||
|      *  | ||||
|      * | ||||
|      * @return String | ||||
|      */ | ||||
|     public static String getDate() | ||||
| @ -121,7 +122,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils | ||||
|             return null; | ||||
|         } | ||||
|     } | ||||
|      | ||||
|  | ||||
|     /** | ||||
|      * 获取服务器启动时间 | ||||
|      */ | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 zt
					zt