//>>builtdefine(["dojo/_base/kernel","dojo/_base/lang","dojo/date","dojox/string/tokenize"],function(e,h,f,g){vard=e.getObject("date.php",!0,dojox);d.format=function(a,b){return(newd.DateFormat(b)).format(a)};d.DateFormat=function(a){if(!this.regex){varb=[],c;for(cinthis.constructor.prototype)e.isString(c)&&1==c.length&&e.isFunction(this[c])&&b.push(c);this.constructor.prototype.regex=newRegExp("(?:(\\\\.)|(["+b.join("")+"]))","g")}vard=[];this.tokens=g(a,this.regex,function(a,b,c){if(b)returnd.push([c,b]),b;if(a)returna.charAt(1)});this.replacements=d};e.extend(d.DateFormat,{weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),weekdays_3:"Sun Mon Tue Wed Thu Fri Sat".split(" "),months:"January February March April May June July August September October November December".split(" "),months_3:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),monthdays:[31,28,31,30,31,30,31,31,30,31,30,31],format:function(a){this.date=a;a=0;for(varb;b=this.replacements[a];a++)this.tokens[b[0]]=this[b[1]]();returnthis.tokens.join("")},d:function(){vara=this.j();return1==a.length?"0"+a:a},D:function(){returnthis.weekdays_3[this.date.getDay()]},j:function(){returnthis.date.getDate()+""},l:function(){returnthis.weekdays[this.date.getDay()]},N:function(){vara=this.w();returna?a:7},S:function(){switch(this.date.getDate()){case11:case12:case13:return"th";case1:case21:case31:return"st";case2:case22:return"nd";case3:case23:return"rd";default:return"th"}},w:function(){returnthis.date.getDay()+""},z:function(){vara=this.date.getTime()-(newDate(this.date.getFullYear(),0,1)).getTime();returnMath.floor(a/864E5)+""},W:function(){vara,b=(newDate(this.date.getFullYear(),0,1)).getDay()+1;a=this.date.getDay()+1;varc=parseInt(this.z());c<=8-b&&4<b?(a=newDate(this.date.getFullYear()-1,this.date.getMonth(),this.date.getDate()),a=5==b||6==b&&f.isLeapYear(a)?53:52):(this.L()?366:365)-c<4-a?a=1:(a=Math.ceil((c+(7-a)+(b-1))/7),4<b&&--a);returna},F:function(){returnthis.months[this.date.getMonth()]},m:function(){vara=this.n();return1==a.length?"0"+a:a},M:function(){returnthis.months_3[this.date.getMonth()]},n:function(){returnthis.date.getMonth()+1+""},t:function(){returnthis.L()&&1==this.date.getMonth()?29:this.monthdays[this.getMonth()]},L:function(){returnf.isLeapYear(this.date)?"1":"0"},o:function(){},Y:function(){returnthis.date.getFullYear()+""},y:function(){returnthis.Y().slice(-2)},a:function(){return12<=this.date.getHours()?"pm":"am"},b:function(){returnthis.a().toUpperCase()},B:function(){for(vara=this.date.getTimezoneOffset()+60,a=3600*this.date.getHours()+60*this.date.getMinutes()+this.getSeconds()+60*a,a=Math.abs(Math.floor(a/86.4)%1E3)+"";2>a.length;)a="0"+a;returna},g:function(){return(this.date.getHours()%12||12)+""},G:function(){returnthis.date.getHours()+""},h:function(){vara=this.g();return1==a.length?"0"+a:a},H:function(){vara=this.G();return1==a.length?"0"+a:a},i:function(){vara=this.date.getMinutes()+"";return1==a.length?"0"+a:a},s:function(){vara=this.date.getSeconds()+"";return1==a.length?"0"+a:a},e:function(){returnf.getTimezoneName(this.date)},I:function(){},O:function(){vara=Math.abs(this.date.getTimezoneOffset()),b=Math.floor(a/60)+"",a=a%60+"";1==b.length&&(b="0"+b);1==a.length&&(b="0"+a);return(0>this.date.getTimezoneOffset()?"+":"-")+b+a},P:function(){vara=this.O();returna.substring(0,2)+":"+a.substring(2,4)},T:function(){returnthis.e().substring(0,3)},Z:function(){return-60*this.date.getTimezoneOffset()},c:function(){returnthis.Y()+"-"+this.m()+"-"+this.d()+"T"+this.h()+":"+this.i()+":"+this.s()+this.P()},r:function(){returnthis.D()+", "+this.d()+" "+this.M()+" "+this.Y()+" "+this.H()+":"+this.i()+":"+this.s()+" "+this.O()},U:function(){returnMath.floor(this.date.getTime()/1E3)}});returnd});