rem: DateFormater.prototype.formatDateTime = function formatDateTime(datetime, omitDateIfToday, timeString) { var formattedTime = (timeString || this.getFormatedTime( datetime )); if (omitDateIfToday) { var today = new Date(); if (datetime.getFullYear() == today.getFullYear() && datetime.getMonth() == today.getMonth() && datetime.getDate() == today.getDate()) {  
add: DateFormater.prototype.formatDateTime = function formatDateTime(datetime, relativeToDate, allDayOrTimeString) { var formattedTime = (! allDayOrTimeString ?                   this.getFormatedTime( datetime ) : typeof(allDayOrTimeString) == "string" ? allDayOrTimeString               : allDayOrTimeString instanceof String ?   allDayOrTimeString               : this.dateStringBundle.GetStringFromName("AllDay")); if (relativeToDate) { if (!(relativeToDate instanceof Date)) relativeToDate = new Date(); if (this.isOnSameDate(datetime, relativeToDate)) {  
context: DateFormater.prototype.formatDateTime = function formatDateTime(datetime, omitDateIfToday, timeString) {   var formattedTime = (timeString || this.getFormatedTime( datetime ));  if (omitDateIfToday) {     var today = new Date();    if (datetime.getFullYear() == today.getFullYear() &&        datetime.getMonth() == today.getMonth() &&        datetime.getDate() == today.getDate()) {      // if today, just show time (or "All day")      return formattedTime;    }  }  var formattedDate = this.getFormatedDate( datetime );  if ( getBoolPref(gCalendarWindow.calendarPreferences.calendarPref, "date.formatTimeBeforeDate", false )) {     return formattedTime+" "+formattedDate;  } else { // default    return formattedDate+" "+formattedTime;   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/20e983b306eebf81891ab0c02bef6a45ce4fa9a7/dateUtils.js/buggy/calendar/resources/content/dateUtils.js