- public static String formatTime(String t) {
- SimpleDateFormat sdf = new SimpleDateFormat("MMM dd yyyyHH:mm:ss", Locale.US);
- SimpleDateFormat sdf2 = new SimpleDateFormat("yyyyMMddHHmmss");
- try {
- return sdf2.format(sdf.parse(t));
- } catch (ParseException ex) {
- Logger.getLogger(TL.class.getName()).log(Level.SEVERE, null, ex);
- }
- return "";
- }
// "SOFTVER":"Feb 10 201520:05:34",
String HVER = (String) job.get("SOFTVER");
时间: 2024-10-30 12:14:04