37接口数据

back_recharge
zhangshanxue 2019-08-21 14:52:08 +08:00
parent f0443e1a21
commit bbc05c8c33
1 changed files with 12 additions and 0 deletions

View File

@ -116,6 +116,11 @@ public class TimeUtils {
* 1970-07-10 * 1970-07-10
*/ */
//private static final DateFormat ymdFormat = new SimpleDateFormat("yyyy-MM-dd"); //private static final DateFormat ymdFormat = new SimpleDateFormat("yyyy-MM-dd");
/**
* 19700710
*/
private static final DateFormat ymdFormat = new SimpleDateFormat("yyyyMMdd");
/** /**
* 19700710 * 19700710
*/ */
@ -269,6 +274,13 @@ public class TimeUtils {
return ymdhmsFormat_new.format(data); return ymdhmsFormat_new.format(data);
} }
/**
* yyyyMMdd
*/
public static String getTimeStampYMD(Long time) {
Date data = new Date(time);
return ymdFormat.format(data);
}
// /** // /**