public class UtilDate extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
dtLong
年月日时分秒(无下划线) yyyyMMddHHmmss
|
static String |
dtShort
年月日(无下划线) yyyyMMdd
|
static String |
simple
完整时间 yyyy-MM-dd HH:mm:ss
|
| Constructor and Description |
|---|
UtilDate() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDate()
获取系统当期年月日(精确到天),格式:yyyyMMdd
|
static String |
getDateFormatter()
获取系统当前日期(精确到毫秒),格式:yyyy-MM-dd HH:mm:ss
|
static String |
getOrderNum()
返回系统当前时间(精确到毫秒),作为一个唯一的订单编号
|
static String |
getThree()
产生随机的三位数
|
public static final String dtLong
public static final String simple
public static final String dtShort
public static String getOrderNum()
public static String getDateFormatter()
public static String getDate()
public static String getThree()
Copyright © 2018. All rights reserved.