//>>built
define("dojox/dtl/utils/date",["dojo/_base/lang","dojox/date/php","../_base"],function(b,c,g){b.getObject("dojox.dtl.utils.date",!0);g.utils.date.DateFormat=c.DateFormat;b.extend(g.utils.date.DateFormat,c.DateFormat.prototype,{f:function(){return!this.date.getMinutes()?this.g():this.g()+":"+this.i()},N:function(){return dojox.dtl.utils.date._months_ap[this.date.getMonth()]},P:function(){return!this.date.getMinutes()&&!this.date.getHours()?"midnight":!this.date.getMinutes()&&12==this.date.getHours()?
"noon":this.f()+" "+this.a()}});b.mixin(dojox.dtl.utils.date,{format:function(a,d){return(new dojox.dtl.utils.date.DateFormat(d)).format(a)},timesince:function(a,d){a instanceof Date||(a=new Date(a.year,a.month,a.day));d||(d=new Date);for(var b=Math.abs(d.getTime()-a.getTime()),c=0,e;e=dojox.dtl.utils.date._chunks[c];c++){var f=Math.floor(b/e[0]);if(f)break}return f+" "+e[1](f)},_chunks:[[31536E6,function(a){return 1==a?"year":"years"}],[2592E6,function(a){return 1==a?"month":"months"}],[6048E5,function(a){return 1==
a?"week":"weeks"}],[864E5,function(a){return 1==a?"day":"days"}],[36E5,function(a){return 1==a?"hour":"hours"}],[6E4,function(a){return 1==a?"minute":"minutes"}]],_months_ap:"Jan.,Feb.,March,April,May,June,July,Aug.,Sept.,Oct.,Nov.,Dec.".split(",")});return dojox.dtl.utils.date});