1498567912; var time = new Date(); var now = Date.parse(time)/1000; if(now - createtime > 86400){ $.get(location.href+'?create=1'); }