[dev_opt_2.15.0]BadCase添加埋点统计上报

This commit is contained in:
xuxinchao
2023-03-31 18:39:38 +08:00
parent fe5616622e
commit 8639283b78
6 changed files with 200 additions and 46 deletions

View File

@@ -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;
}
}