//>>built
define("dojox/calendar/time",["dojo/_base/lang","dojo/date","dojo/cldr/supplemental","dojo/date/stamp"],function(j,g,h,i){var e={};e.newDate=function(a,c){var c=c||Date,b;if("number"==typeof a)return new c(e);if(a.getTime)return new c(a.getTime());if(a.toGregorian)return b=a.toGregorian(),c!==Date&&(b=new c(b.getTime())),b;if("string"==typeof a)return b=i.fromISOString(a),null===b?b=new c(a):c!==Date&&(b=new c(b.getTime())),b};e.floorToDay=function(a,c,b){c||(a=e.newDate(a,b||Date));a.setHours(0,
0,0,0);return a};e.floorToMonth=function(a,c,b){c||(a=e.newDate(a,b||Date));a.setDate(1);a.setHours(0,0,0,0);return a};e.floorToWeek=function(a,c,b,d,f){c=c||Date;b=b||g;d=void 0==d||0>d?h.getFirstDayOfWeek(f):d;f=a.getDay();return f==d?a:e.floorToDay(b.add(a,"day",f>d?-f+d:d-f),!0,c)};e.floor=function(a,c,b,d,f){d=e.floorToDay(a,d,f);switch(c){case "week":return e.floorToWeek(d,firstDayOfWeek,dateModule,locale);case "minute":d.setHours(a.getHours());d.setMinutes(Math.floor(a.getMinutes()/b)*b);break;
case "hour":d.setHours(Math.floor(a.getHours()/b)*b)}return d};e.isStartOfDay=function(a,c,b){b=b||g;return 0==b.compare(this.floorToDay(a,!1,c),a)};e.isToday=function(a,c){var b=new (c||Date);return a.getFullYear()==b.getFullYear()&&a.getMonth()==b.getMonth()&&a.getDate()==b.getDate()};return e});