jquery-src/jquery.calendars.plus.js
function(match, value, len, step) {
				var num = '' + value;
				if (doubled(match, step)) {
					while (num.length < len) {
						num = '0' + num;
					}
				}
				return num;
			}
function(match, value, len, step) {
				var num = '' + value;
				if (doubled(match, step)) {
					while (num.length < len) {
						num = '0' + num;
					}
				}
				return num;
			}
function ( match , value , len , step ) { var num = '' + value ; if ( doubled ( match , step ) ) { while ( num . length < len ) { num = '0' + num ; } } return num ; }
Format a number, with leading zeroes if necessary
Format a number with leading zeroes if necessary