10位数的时间戳

10位数的时间戳

long timeStampSec = System.currentTimeMillis()/1000;
       String timestamp = String.format("%010d", timeStampSec);

猜你喜欢

转载自blog.csdn.net/qq_40680694/article/details/82958685