123456String unixTimeStr= "1572251400";long s = Long.parseLong(unixTimeStr);s *= 1000; // 乘以1000,变成毫秒SimpleDateFormat t = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");String date = t.format(new Date(s));System.out.println(date); //2019-10-28 16:30:00