我想要这样的当前时间戳: 1320917972
int time = (int) (System.currentTimeMillis()); Timestamp tsTemp = new Timestamp(time); String ts = tsTemp.toString();
解决方案是:
Long tsLong = System.currentTimeMillis()/1000; String ts = tsLong.toString();