37接口数据
parent
f0443e1a21
commit
bbc05c8c33
|
@ -116,6 +116,11 @@ public class TimeUtils {
|
|||
* 年月日,格式如1970-07-10
|
||||
*/
|
||||
//private static final DateFormat ymdFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||
|
||||
/**
|
||||
* 年月日,格式如19700710
|
||||
*/
|
||||
private static final DateFormat ymdFormat = new SimpleDateFormat("yyyyMMdd");
|
||||
/**
|
||||
* 年月日,格式如1970年07月10日
|
||||
*/
|
||||
|
@ -269,6 +274,13 @@ public class TimeUtils {
|
|||
return ymdhmsFormat_new.format(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取时间戳字符串yyyyMMdd
|
||||
*/
|
||||
public static String getTimeStampYMD(Long time) {
|
||||
Date data = new Date(time);
|
||||
return ymdFormat.format(data);
|
||||
}
|
||||
|
||||
|
||||
// /**
|
||||
|
|
Loading…
Reference in New Issue