text: function date(e,t){var n=this;var r,i;var s=["Sun","Mon","Tues","Wednes","Thurs","Fri","Satur","January","February","March","April","May","June","July","August","September","October","November","December"];var o=/\\?(.?)/gi;var u=function(e,t){return i[e]?i[e]():t};var a=function(e,t){e=String(e);while(e.length<t){e="0"+e}return e};i={d:function(){return a(i.j(),2)},D:function(){return i.l().slice(0,3)},j:function(){return r.getDate()},l:function(){return s[i.w()]+"day"},N:function(){return i.w()||7},S:function(){var e=i.j();var t=e%10;if(t<=3&&parseInt(e%100/10,10)==1){t=0}return["st","nd","rd"][t-1]||"th"},w:function(){return r.getDay()},z:function(){var e=new Date(i.Y(),i.n()-1,i.j());var t=new Date(i.Y(),0,1);return Math.round((e-t)/864e5)},W:function(){var e=new Date(i.Y(),i.n()-1,i.j()-i.N()+3);var t=new Date(e.getFullYear(),0,4);return a(1+Math.round((e-t)/864e5/7),2)},F:function(){return s[6+i.n()]},m:function(){return a(i.n(),2)},M:function(){return i.F().slice(0,3)},n:function(){return r.getMonth()+1},t:function(){return(new Date(i.Y(),i.n(),0)).getDate()},L:function(){var e=i.Y();return e%4===0&e%100!==0|e%400===0},o:function(){var e=i.n();var t=i.W();var n=i.Y();return n+(e===12&&t<9?1:e===1&&t>9?-1:0)},Y:function(){return r.getFullYear()},y:function(){return i.Y().toString().slice(-2)},a:function(){return r.getHours()>11?"pm":"am"},A:function(){return i.a().toUpperCase()},B:function(){var e=r.getUTCHours()*3600;var t=r.getUTCMinutes()*60;var n=r.getUTCSeconds();return a(Math.floor((e+t+n+3600)/86.4)%1e3,3)},g:function(){return i.G()%12||12},G:function(){return r.getHours()},h:function(){return a(i.g(),2)},H:function(){return a(i.G(),2)},i:function(){return a(r.getMinutes(),2)},s:function(){return a(r.getSeconds(),2)},u:function(){return a(r.getMilliseconds()*1e3,6)},e:function(){throw"Not supported (see source code of date() for timezone on how to add support)"},I:function(){var e=new Date(i.Y(),0);var t=Date.UTC(i.Y(),0);var n=new Date(i.Y(),6);var r=Date.UTC(i.Y(),6);return e-t!==n-r?1:0},O:function(){var e=r.getTimezoneOffset();var t=Math.abs(e);return(e>0?"-":"+")+a(Math.floor(t/60)*100+t%60,4)},P:function(){var e=i.O();return e.substr(0,3)+":"+e.substr(3,2)},T:function(){return"UTC"},Z:function(){return-r.getTimezoneOffset()*60},c:function(){return"Y-m-d\\TH:i:sP".replace(o,u)},r:function(){return"D, d M Y H:i:s O".replace(o,u)},U:function(){return r/1e3|0}};this.date=function(e,t){n=this;r=t===undefined?new Date:t instanceof Date?new Date(t):new Date(t*1e3);return e.replace(o,u)};return this.date(e,t)}
  
  function time(){return Math.floor((new Date).getTime()/1e3)}
  
  function mktime(){var e=new Date,t=arguments,n=0,r=["Hours","Minutes","Seconds","Month","Date","FullYear"];for(n=0;n<r.length;n++){if(typeof t[n]==="undefined"){t[n]=e["get"+r[n]]();t[n]+=n===3}else{t[n]=parseInt(t[n],10);if(isNaN(t[n])){return false}}}t[5]+=t[5]>=0?t[5]<=69?2e3:t[5]<=100?1900:0:0;e.setFullYear(t[5],t[3]-1,t[4]);e.setHours(t[0],t[1],t[2]);return(e.getTime()/1e3>>0)-(e.getTime()<0)}
  
  function intval(e,t){var n;var r=typeof e;if(r==="boolean"){return+e}else if(r==="string"){n=parseInt(e,t||10);return isNaN(n)||!isFinite(n)?0:n}else if(r==="number"&&isFinite(e)){return e|0}else{return 0}}
  