rem: var hrs = this.date.getHours(); var mins = this.date.getMinutes(); var pm = (hrs > 12); if (pm && t12) hrs -= 12; H.firstChild.data = (hrs < 10) ? ("0" + hrs) : hrs; M.firstChild.data = (mins < 10) ? ("0" + mins) : mins; if (t12) AP.firstChild.data = pm ? "pm" : "am"; 
add: var pm, hrs = this.date.getHours(), mins = this.date.getMinutes(); if (t12) { pm = (hrs >= 12); if (pm) hrs -= 12; if (hrs == 0) hrs = 12; AP.innerHTML = pm ? "pm" : "am"; } H.innerHTML = (hrs < 10) ? ("0" + hrs) : hrs; M.innerHTML = (mins < 10) ? ("0" + mins) : mins; 
context: 			cal.onSetTime = function() {				var hrs = this.date.getHours();				var mins = this.date.getMinutes();				var pm = (hrs > 12);				if (pm && t12) hrs -= 12;				H.firstChild.data = (hrs < 10) ? ("0" + hrs) : hrs;				M.firstChild.data = (mins < 10) ? ("0" + mins) : mins;				if (t12)					AP.firstChild.data = pm ? "pm" : "am";			};
meta: 412	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/412/cc0a102fe5cd9f8421b73686dd57c312335278dc/calendar.js/clean/include/jscalendar/calendar.js