/** 将时间戳转换为时间* @param time是传进来的时间戳*/public static String stampToDate(long time) {String normalTime;//格式化SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");Date date = new Date(time);normalTime = simpleDateFormat.format(date);return normalTime;}