function DateTime(){ var ma=["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."]; var wa=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]; var za=["ET","CT","MT","PT","AKT","HT","HT"]; this.D2S= function(d,f){ var r="as of "; return r+""+GetT(d)+" "+GetD(d)+""; }; var T2M=function(t){ return parseInt((t-621355968000000000)/10000); }; this.T2D = function(t){ return new Date(T2M(t)); }; var GetT= function(d){ var h=d.getHours(); var m=d.getMinutes(); return((h<13)?((h==0)?12:h):(h-12))+":"+((m<10)?"0"+m:m)+" "+((h<12)?"a.m.":"p.m."); }; var GetD=function(d){ var m=wa[d.getDay()]+"., "+ma[d.getMonth()]+" "+d.getDate()+", "+d.getFullYear(); return m; }; this.GetTZ=function(d){ var o=d.getTimezoneOffset()/60; var st=(d.toString().lastIndexOf("ST")>-1||d.toString().lastIndexOf("Standard Time")>-1)?5:4; return(o<=10&&o>=st)?za[o-st]:false; }; } $(document).ready(function(){var now=new Date();now.setSeconds(now.getSeconds()-90,0);var out=new DateTime().D2S(now,null);var datespan=$('#udtD');if(datespan){if($.trim(datespan.html()).length>0){$(datespan).html(out);}}});