相关疑难解决方法(0)

Android获取当前时间戳?

我想得到当前的时间戳:1320917972

int time = (int) (System.currentTimeMillis());
Timestamp tsTemp = new Timestamp(time);
String ts =  tsTemp.toString();
Run Code Online (Sandbox Code Playgroud)

java android timestamp epoch kotlin

232
推荐指数
11
解决办法
28万
查看次数

标签 统计

android ×1

epoch ×1

java ×1

kotlin ×1

timestamp ×1