_d37=_d37||{}; var _d4c=dojo.hostenv.normalizeLocale(_d37.locale); var _d4d=_d37.formatLength||"full"; var info=dojo.date._getGregorianBundle(_d4c); 
_d32=_d32||{}; var _d47=dojo.hostenv.normalizeLocale(_d32.locale); var _d48=_d32.formatLength||"full"; var info=dojo.date._getGregorianBundle(_d47); 
dojo.date.format=function(_d36,_d37){if(typeof _d37=="string"){dojo.deprecated("dojo.date.format","To format dates with POSIX-style strings, please use dojo.date.strftime instead","0.5");return dojo.date.strftime(_d36,_d37);}function formatPattern(_d38,_d39){return _d39.replace(/([a-z])\1*/ig,function(_d3a){var s;var c=_d3a.charAt(0);var l=_d3a.length;var pad;var _d3f=["abbr","wide","narrow"];switch(c){case "G":if(l>3){dojo.unimplemented("Era format not implemented");}s=info.eras[_d38.getFullYear()<0?1:0];break;case "y":s=_d38.getFullYear();switch(l){case 1:break;case 2:s=String(s).substr(-2);break;default:pad=true;}break;case "Q":case "q":s=Math.ceil((_d38.getMonth()+1)/3);switch(l){case 1:case 2:pad=true;break;case 3:case 4:dojo.unimplemented("Quarter format not implemented");}break;case "M":case "L":var m=_d38.getMonth();var _d42;switch(l){case 1:case 2:s=m+1;pad=true;break;case 3:case 4:case 5:_d42=_d3f[l-3];break;}if(_d42){var type=(c=="L")?"standalone":"format";var prop=["months",type,_d42].join("-");s=info[prop][m];}break;case "w":var _d45=0;s=dojo.date.getWeekOfYear(_d38,_d45);pad=true;break;case "d":s=_d38.getDate();pad=true;break;case "D":s=dojo.date.getDayOfYear(_d38);pad=true;break;case "E":case "e":case "c":var d=_d38.getDay();var _d42;switch(l){case 1:case 2:if(c=="e"){var _d47=dojo.date.getFirstDayOfWeek(_d37.locale);d=(d-_d47+7)%7;}if(c!="c"){s=d+1;pad=true;break;}case 3:case 4:case 5:_d42=_d3f[l-3];break;}if(_d42){var type=(c=="c")?"standalone":"format";var prop=["days",type,_d42].join("-");s=info[prop][d];}break;case "a":var _d48=(_d38.getHours()<12)?"am":"pm";s=info[_d48];break;case "h":case "H":case "K":case "k":var h=_d38.getHours();switch(c){case "h":s=(h%12)||12;break;case "H":s=h;break;case "K":s=(h%12);break;case "k":s=h||24;break;}pad=true;break;case "m":s=_d38.getMinutes();pad=true;break;case "s":s=_d38.getSeconds();pad=true;break;case "S":s=Math.round(_d38.getMilliseconds()*Math.pow(10,l-3));break;case "v":case "z":s=dojo.date.getTimezoneName(_d38);if(s){break;}l=4;case "Z":var _d4a=_d38.getTimezoneOffset();var tz=[(_d4a<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_d4a)/60),2),dojo.string.pad(Math.abs(_d4a)%60,2)];if(l==4){tz.splice(0,0,"GMT");tz.splice(3,0,":");}s=tz.join("");break;case "Y":case "u":case "W":case "F":case "g":case "A":dojo.debug(_d3a+" modifier not yet implemented");s="?";break;default:dojo.raise("dojo.date.format: invalid pattern char: "+_d39);}if(pad){s=dojo.string.pad(s,l);}return s;});}_d37=_d37||{};var _d4c=dojo.hostenv.normalizeLocale(_d37.locale);var _d4d=_d37.formatLength||"full";var info=dojo.date._getGregorianBundle(_d4c);var str=[];var _d4f=dojo.lang.curry(this,formatPattern,_d36);if(_d37.selector!="timeOnly"){var _d50=_d37.datePattern||info["dateFormat-"+_d4d];if(_d50){str.push(_processPattern(_d50,_d4f));}}if(_d37.selector!="dateOnly"){var _d51=_d37.timePattern||info["timeFormat-"+_d4d];if(_d51){str.push(_processPattern(_d51,_d4f));}}var _d52=str.join(" ");return _d52;};
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/8d5e2ec356191d3f7b7197ccdd754d1a5010e15f/struts_dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js