rem: dojo.date.compare = function(/*Date|Number*/date1, /*Date|Number?*/date2, /*String?*/portion){ 
add: dojo.date.compare = function(/*Date*/date1, /*Date?*/date2, /*String?*/portion){ 
context: dojo.date.compare = function(/*Date|Number*/date1, /*Date|Number?*/date2, /*String?*/portion){	//	summary	//		Compare two date objects by date, time, or both.	//	//  description	//  	Returns 0 if equal, positive if a > b, else negative.	//	//	date1	//		Date object or Number equivalent	//	//	date2	//		Date object or Number equivalent.  If not specified, the current Date is used.	//	//	portion	//		A string indicating the "date" or "time" portion of a Date object.  Compares both "date" and "time" by default.	//		One of the following: "date", "time", "datetime"	date1 = new Date(date1);	date2 = new Date(date2 || new Date());	if(typeof portion !== "undefined"){		if(portion == "date"){			// Ignore times and compare dates.			date1.setHours(0, 0, 0, 0);			date2.setHours(0, 0, 0, 0);		}else if(portion == "time"){			// Ignore dates and compare times.			date1.setFullYear(0, 0, 0);			date2.setFullYear(0, 0, 0);		}	}		if(date1 > date2){ return 1; } // int	if(date1 < date2){ return -1; } // int	return 0; // int};
meta: 4497	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4497/ec09c461611d1ecb30f8b36e925b9082856cfc9a/date.js/buggy/date.js