我的代码有什么问题:
long TimeinMillisec = system.currentTimeMillis()/1000; //1376324360;
SimpleDateFormat simpledf = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss", Locale.getDefault());
String time_str = simpledf.format(TimeinMillisec);
time_str 给出了错误的值:
1970-01-16_23:18:44
预期的:
2013-08-12_18:19:20