时间戳转日期

function getLocalTime(nS) {  
 return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:d{1,2}$/,' ');  
}
原文地址:https://www.cnblogs.com/yuxiaoge/p/11826696.html