function timeit(){var t=[],e=new Date;Date.prototype.yyyymmdd=function(){var t=this.getMonth()+1,e=this.getDate();return[this.getFullYear(),(t>9?"":"0")+t,(e>9?"":"0")+e].join("-")};var i=e.yyyymmdd();if($(".timeit").each(function(){function n(i){var n=i-e;864e5>n&&n>1e3&&t.push(n)}function a(t){var e,i=/^\s*(\d{4})-(\d\d)-(\d\d)?.(\d\d)?.(\d\d)\s*$/,n=new Date(NaN);t.substr(0,t.indexOf(" "));return parts=i.exec(t),parts&&(e=+parts[2],n.setFullYear(parts[1],e-1,parts[3]),e!=n.getMonth()+1&&n.setTime(NaN),n=new Date(parts[1],e-1,parts[3],parts[4],parts[5])),n}function r(t,n){if(t){String(t).length<6&&String(t).indexOf(":")>-1&&(t=i+" "+String(t)),-1==String(t).indexOf(":")&&(t+=" 00:00");var r=t.split(":"),s=String(r.slice(0,1)),d=s.substr(s.length-2),o=r.slice(1),l=24>d&&60>o?!0:!1,u=new Date(t);if("Invalid Date"==u)var u=a(t);return"Invalid Date"!=u&&l||$(n).addClass("error").attr("title",'"'+t+'" date is incorrect; please use YYYY-MM-DD HH:MM format'),u.getTime()}return e.getTime()}var s=$(this).data("end"),d=$(this).data("start"),o=r(d,this),l=r(s,this);n(o),n(l),l>o&&(o>e||e>l)||o>l&&o>=e&&e>=l?$(this).addClass("hidden"):$(this).removeClass("hidden")}),t.length>0){var n=Math.min.apply(null,t);console.log("next run of timeit function is in "+n/1e3+"seconds"),setTimeout(function(){timeit()},n)}}timeit();