[dev_opt_2.15.0]BadCase添加埋点统计上报
This commit is contained in:
@@ -1626,4 +1626,16 @@ public final class TimeUtils {
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/*
|
||||
* 将时间转换为时间戳
|
||||
*/
|
||||
public static String dateToStamp(String dateString,String pattern) throws ParseException {
|
||||
String res;
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern,Locale.CHINA);
|
||||
Date date = simpleDateFormat.parse(dateString);
|
||||
long ts = date.getTime();
|
||||
res = String.valueOf(ts);
|
||||
return res;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user