SimpleDateFormat parse returns wrong value
问题 I have this code: public static String formatMinSecOrHourMinSec(final String length) { try { final SimpleDateFormat hhmmss = new SimpleDateFormat("HH:mm:ss", Locale.GERMAN); final Date date = hhmmss.parse(length); final GregorianCalendar gc0 = new GregorianCalendar(Locale.GERMAN); gc0.setTime(date); if(gc0.getTimeInMillis() >= 3600 * 1000){ return hhmmss.format(gc0.getTime()); }else{ final SimpleDateFormat mmss = new SimpleDateFormat("mm:ss"); return mmss.format(gc0.getTime()); } } catch