public class UtilDate extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
dtLong
年月日时分秒(无下划线) yyyyMMddHHmmss
|
static String |
dtShort
年月日(无下划线) yyyyMMdd
|
static String |
simple
完整时间 yyyy-MM-dd HH:mm:ss
|
| 构造器和说明 |
|---|
UtilDate() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getDate()
获取系统当期年月日(精确到天),格式:yyyyMMdd
|
static String |
getDateFormatter()
获取系统当前日期(精确到毫秒),格式:yyyy-MM-dd HH:mm:ss
|
static String |
getOrderNum()
返回系统当前时间(精确到毫秒),作为一个唯一的订单编号
|
static String |
getThree()
产生随机的三位数
|
public static String getOrderNum()
public static String getDateFormatter()
public static String getDate()
public static String getThree()
Copyright © 2021. All rights reserved.