back_recharge
wangyuan 2019-04-30 11:03:41 +08:00
parent 31a56a778a
commit 5a55ad0030
1 changed files with 10 additions and 0 deletions

View File

@ -1148,4 +1148,14 @@ public class TimeUtils {
return simpleDateFormat.parse(date).getTime();
}
public static long stringToTimeLong(String dateStr,String pattern) {
try {
SimpleDateFormat dateFormat = new SimpleDateFormat(pattern);
return dateFormat.parse(dateStr).getTime();
} catch (ParseException e) {
LOGGER.error("", e);
}
return now();
}
}