php时间:1368524732
js代码:
function getLocalTime(nS) {
return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:d{1,2}$/,' ');
}
alert(1368524732)
输出:2013年5月15日 上午10:39
来源:http://www.cnblogs.com/sufei/archive/2012/12/03/2799480.html
http://blog.csdn.net/wust_star/article/details/7672840