在Java中,可以使用System.currentTimeMillis()方法来获取当前的时间戳。例如:

long timestamp= System.currentTimeMillis();
Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐