[java]时间戳转时间(String格式)
private final SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String timeStamp = "1658976485000"; String date = simpleDateFormat.format(Long.valueOf(timeStamp)); System.out.println(date); //输出结果:2022-07-28 02:48:05