js getBrowserTime

180it 2019-11-01 PM 1198℃ 0条

function getBrowserTime() {

d0 = new Date();

// return d0.toJSON().substr(0,19).replace(/[-T:]/g,"");

var now = d0.getFullYear()*10000000000 + (d0.getMonth()+1)*100000000 + d0.getDate()*1000000 + d0.getHours()*10000 + d0.getMinutes()*100 + d0.getSeconds() + d0.getMilliseconds()/1000;

var d1 = new Date(d0);
d1.setDate(d1.getDate()-30);
o30 = d1.getFullYear()*100000000 + (d1.getMonth()+1)*1000000 + d1.getDate()*10000;

return now;

}

支付宝打赏支付宝打赏 微信打赏微信打赏

如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!

标签: none

js getBrowserTime