顯示的時間超出了我的預期。我正在解析一個日期字符串並將其變爲毫秒。返回錯誤時間的日曆
year = Integer.parseInt(m1.group(1));
mo = Integer.parseInt(m1.group(2));
day = Integer.parseInt(m1.group(3));
hr = Integer.parseInt(m1.group(4));
min = Integer.parseInt(m1.group(5));
sec = Integer.parseInt(m1.group(6));
,在這裏我設置了日曆
Calendar cal = Calendar.getInstance();
cal.set(year, mo, day, hr, min, sec);
time = cal.getTimeInMillis();
什麼叫「前進的道路是什麼意思它應該是」? – mre 2011-06-15 01:58:48