Java 如何获得 Unix 时间戳

使用下面的代码获得时间戳。long epoch = System.currentTimeMillis()/1000;