Java获取当前时间戳 Long time = System.currentTimeMillis(); String t = String.valueOf(time); System.out.println(t);