时间戳转时间

 function getLocalTime(nS) {
        return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:d{1,2}$/,' ');
    }

 getLocalTime(15088877555) ;//结果2017/8/24 下午5:26

  

原文地址:https://www.cnblogs.com/jiaoyue/p/7427930.html