日期:2014-05-17 浏览次数:20996 次
var timeStamp=635210495600000000;
var time=new Date();
time.setTime(Math.floor((timeStamp-621355968000000000)/10000-28800000));
function getdatetime(ticks){
var d=new Date();//621355968000000000是1970-1-1的Ticks值,js是从1970-1-1开始计算
return new Date(d.setTime((ticks-621355968000000000)/10000));
}
document.write(getdatetime(635210495600000000).toLocaleDateString()+getdatetime(635210495600000000).toLocaleTimeString());