Stringres;
SimpleDateFormat simpleDateFormat =new SimpleDateFormat(pattern);
long lt =new Long(milSecond);
Date date =new Date(lt);
res = simpleDateFormat.format(date);
return res;
很奇怪 转换出来是1970年
Stringres;
SimpleDateFormat simpleDateFormat =new SimpleDateFormat(pattern);
long lt =new Long(milSecond);
Date date =new Date(lt *1000L);
res = simpleDateFormat.format(date);
return res;
就加了个*1000L
可以了