/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


window[esri._dojoScopeName||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dojox.date.php"],["require","dojo.date"],["require","dojox.string.tokenize"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojox.date.php"]){_4._hasResource["dojox.date.php"]=true;_4.provide("dojox.date.php");_4.require("dojo.date");_4.require("dojox.string.tokenize");_6.date.php.format=function(_7,_8){var df=new _6.date.php.DateFormat(_8);return df.format(_7);};_6.date.php.DateFormat=function(_9){if(!this.regex){var _a=[];for(var _b in this.constructor.prototype){if(_4.isString(_b)&&_b.length==1&&_4.isFunction(this[_b])){_a.push(_b);}}this.constructor.prototype.regex=new RegExp("(?:(\\\\.)|(["+_a.join("")+"]))","g");}var _c=[];this.tokens=_6.string.tokenize(_9,this.regex,function(_d,_e,i){if(_e){_c.push([i,_e]);return _e;}if(_d){return _d.charAt(1);}});this.replacements=_c;};_4.extend(_6.date.php.DateFormat,{weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdays_3:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],months_3:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthdays:[31,28,31,30,31,30,31,31,30,31,30,31],format:function(_f){this.date=_f;for(var i=0,_10;_10=this.replacements[i];i++){this.tokens[_10[0]]=this[_10[1]]();}return this.tokens.join("");},d:function(){var j=this.j();return (j.length==1)?"0"+j:j;},D:function(){return this.weekdays_3[this.date.getDay()];},j:function(){return this.date.getDate()+"";},l:function(){return this.weekdays[this.date.getDay()];},N:function(){var w=this.w();return (!w)?7:w;},S:function(){switch(this.date.getDate()){case 11:case 12:case 13:return "th";case 1:case 21:case 31:return "st";case 2:case 22:return "nd";case 3:case 23:return "rd";default:return "th";}},w:function(){return this.date.getDay()+"";},z:function(){var _11=this.date.getTime()-new Date(this.date.getFullYear(),0,1).getTime();return Math.floor(_11/86400000)+"";},W:function(){var _12;var _13=new Date(this.date.getFullYear(),0,1).getDay()+1;var w=this.date.getDay()+1;var z=parseInt(this.z());if(z<=(8-_13)&&_13>4){var _14=new Date(this.date.getFullYear()-1,this.date.getMonth(),this.date.getDate());if(_13==5||(_13==6&&_4.date.isLeapYear(_14))){_12=53;}else{_12=52;}}else{var i;if(Boolean(this.L())){i=366;}else{i=365;}if((i-z)<(4-w)){_12=1;}else{var j=z+(7-w)+(_13-1);_12=Math.ceil(j/7);if(_13>4){--_12;}}}return _12;},F:function(){return this.months[this.date.getMonth()];},m:function(){var n=this.n();return (n.length==1)?"0"+n:n;},M:function(){return this.months_3[this.date.getMonth()];},n:function(){return this.date.getMonth()+1+"";},t:function(){return (Boolean(this.L())&&this.date.getMonth()==1)?29:this.monthdays[this.getMonth()];},L:function(){return (_4.date.isLeapYear(this.date))?"1":"0";},o:function(){},Y:function(){return this.date.getFullYear()+"";},y:function(){return this.Y().slice(-2);},a:function(){return this.date.getHours()>=12?"pm":"am";},b:function(){return this.a().toUpperCase();},B:function(){var off=this.date.getTimezoneOffset()+60;var _15=(this.date.getHours()*3600)+(this.date.getMinutes()*60)+this.getSeconds()+(off*60);var _16=Math.abs(Math.floor(_15/86.4)%1000)+"";while(_16.length<2){_16="0"+_16;}return _16;},g:function(){return (this.date.getHours()>12)?this.date.getHours()-12+"":this.date.getHours()+"";},G:function(){return this.date.getHours()+"";},h:function(){var g=this.g();return (g.length==1)?"0"+g:g;},H:function(){var G=this.G();return (G.length==1)?"0"+G:G;},i:function(){var _17=this.date.getMinutes()+"";return (_17.length==1)?"0"+_17:_17;},s:function(){var _18=this.date.getSeconds()+"";return (_18.length==1)?"0"+_18:_18;},e:function(){return _4.date.getTimezoneName(this.date);},I:function(){},O:function(){var off=Math.abs(this.date.getTimezoneOffset());var _19=Math.floor(off/60)+"";var _1a=(off%60)+"";if(_19.length==1){_19="0"+_19;}if(_1a.length==1){_19="0"+_1a;}return ((this.date.getTimezoneOffset()<0)?"+":"-")+_19+_1a;},P:function(){var O=this.O();return O.substring(0,2)+":"+O.substring(2,4);},T:function(){return this.e().substring(0,3);},Z:function(){return this.date.getTimezoneOffset()*-60;},c:function(){return this.Y()+"-"+this.m()+"-"+this.d()+"T"+this.h()+":"+this.i()+":"+this.s()+this.P();},r:function(){return this.D()+", "+this.d()+" "+this.M()+" "+this.Y()+" "+this.H()+":"+this.i()+":"+this.s()+" "+this.O();},U:function(){return Math.floor(this.date.getTime()/1000);}});}}};});