|
@@ -14,6 +14,7 @@ public class DateTimeUtils {
|
|
|
private static final ConcurrentHashMap<String,SimpleDateFormat> SDF = new ConcurrentHashMap<>();
|
|
|
/**默认时间格式*/
|
|
|
public static final String FORMAT = "yyyy-MM-dd HH:mm:ss";
|
|
|
+ public static final String FORMAT_NETTY = "yyyy-MM-dd HH:mm:ss.SSS";
|
|
|
// public static final String SIGN_FORMAT = "HH:mm:ss";
|
|
|
public static final String FORMAT_M = "yyyy-MM-dd HH:mm";
|
|
|
public static final String FORMAT_YMD = "yyyy-MM-dd";
|
|
@@ -30,6 +31,7 @@ public class DateTimeUtils {
|
|
|
public static final long ONE_HOUR = 60 * 60 * 1000;
|
|
|
/** 一天的时间(毫秒) */
|
|
|
public static final long ONE_DAY = 24 * 60 * 60 * 1000;
|
|
|
+
|
|
|
public static String currDateFormat(String format){
|
|
|
return formatDate(new Date(),format);
|
|
|
}
|