demo:
function getLocalTime(nS) {
return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' ');
}
getLocalTime(1489390119);
"2017/3/13 下午3:28 "
抓取微博视频,其中一个校验字段用的时间戳:
http://us.sinaimg.cn/004sFuESjx076OWcKh6U010401006fqJ0k01.mp4?label=mp4_hd&Expires=1489390119&ssig=34HSjlSEPz&KID=unistore,video