System.out.println(new Date().getTime()/1000); System.out.println(System.currentTimeMillis()/1000); 结果