js格式化时间戳

//格式化时间戳

function getLocalTime(nS) {   

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

}


html+='';

你可能感兴趣的:(js格式化时间戳)