a:11:{s:9:"#provides";s:25:"dojox.date.HebrewNumerals";s:9:"#resource";s:22:"date/HebrewNumerals.js";s:46:"dojox.date.HebrewNumerals.getYearHebrewLetters";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"year";a:1:{s:4:"type";s:6:"Number";}}s:6:"source";s:936:" var str = "", str2 = ""; year = year%1000; var i=0, n=4,j=9; while(year){ if(year >= n*100){ str=str.concat(_HUN[n-1]); year -= n*100; continue; }else if(n > 1){ n--; continue; }else if(year >= j*10){ str=str.concat(_TEN[j-1]); year -= j*10; }else if (j >1){ j--; continue; }else if(year > 0){ str=str.concat(_DIG[year-1]); year=0; } } var str1 = ""; var ind = str.indexOf(_REP[0]); if(ind > -1){ str = str1.concat(str.substr(str[0], ind), _REP[2], str.substr(str[ind+2], str.length-ind-2)); }else if( ( ind=str.indexOf(_REP[1]) ) > -1){ str = str1.concat(str.substr(str[0], ind), _REP[3], str.substr(str[ind+2], str.length-ind-2)); } if(str.length > 1){ var last = str.charAt(str.length - 1); str = str2.concat(str.substr(0, str.length-1), '"', last); }else{ str = str.concat(_GERESH[0]); } return str; ";s:7:"summary";s:60:"This function return year written in Hebrew numbers-letters,";s:8:"examples";a:1:{i:0;s:133:" var date1 = new dojox.date.HebrewDate(); document.writeln(dojox.date.HebrewNumerals.getYearHebrewLetters(date1.getFullYear());";}}s:48:"dojox.date.HebrewNumerals.parseYearHebrewLetters";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"year";a:1:{s:4:"type";s:18:"String hebrew year";}}s:6:"source";s:403:" var nYear = 0, i=0, j=0; for(j=0; j < year.length; j++){ for(i=1; i <= 5; i++){ if(year.charAt(j) == _HUN[i-1]){ nYear += 100*i; continue; } } for(i=1; i <= 9; i++){ if(year.charAt(j) == _TEN[i-1]){ nYear += 10*i; continue; } } for(i=1; i <= 9; i++){ if(year.charAt(j) == _DIG[i-1]){ nYear += i; } } } return nYear+5000;";s:7:"summary";s:91:"This function return year in format number from the year written in Hebrew numbers-letters";s:8:"examples";a:1:{i:0;s:130:" var date = new dojox.date.HebrewDate(); date.setYear(dojox.date.HebrewNumerals.parseYearHebrewLetters('תשס"ח')); ";}}s:45:"dojox.date.HebrewNumerals.getDayHebrewLetters";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:3:"day";a:1:{s:4:"type";s:0:"";}s:6:"nogrsh";a:2:{s:8:"optional";b:1;s:4:"type";s:5:"bool ";}}s:6:"source";s:783:" var str = ""; var j=3; while(day){ if(day >= j*10){ str=str.concat(_TEN[j-1]); day -= j*10; }else if (j >1){ j--; continue; }else if(day > 0){ str=str.concat(_DIG[day-1]); day=0; } } var str1 = ""; var ind = str.indexOf(_REP[0]); if(ind > -1){ str = str1.concat(str.substr(str[0], ind), _REP[2], str.substr(str[ind+2], str.length-ind-2)); }else if( ( ind=str.indexOf(_REP[1]) ) > -1){ str = str1.concat(str.substr(str[0], ind), _REP[3], str.substr(str[ind+2], str.length-ind-2)); } if(!nogrsh){ var str2 = ""; if(str.length > 1){ var last = str.charAt(str.length - 1); str = str2.concat(str.substr(0, str.length-1), '"', last); }else{ str = str.concat(_GERESH[0]); } } return str; ";s:7:"summary";s:113:"This function return date written in Hebrew numbers-letter, can be in format × or ×' (with geresh)";s:8:"examples";a:1:{i:0;s:127:" var date1 = new dojox.date.HebrewDate(); document.writeln(dojox.date.HebrewNumerals.getDayHebrewLetters(date1.getDay());";}}s:47:"dojox.date.HebrewNumerals.parseDayHebrewLetters";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"day";a:1:{s:4:"type";s:13:"String hebrew";}}s:6:"source";s:413:" var nDay = 0, i=0; for (var j=0; j < day.length; j++){ for(i=1; i <= 9; i++){ if(day.charAt(j) == _TEN[i-1]) { nDay += 10*i; continue; } } for(i=1; i <= 9; i++){ if(day.charAt(j) == _DIG[i-1]) nDay += i; } } //if (nDay > this.getDaysInHebrewMonth(_month, this._year)){ // nDay = this.getDaysInHebrewMonth(this._month, this._year); //} return nDay; ";s:7:"summary";s:90:"This function return date in format number from the date written in Hebrew numbers-letter";s:8:"examples";a:1:{i:0;s:117:" var date1 = new dojox.date.HebrewDate(); date1.setDate(dojox.date.HebrewNumerals.parseDayHebrewLetters('א'));";}}s:47:"dojox.date.HebrewNumerals.getMonthHebrewLetters";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:8:"monthNum";a:1:{s:4:"type";s:0:"";}s:5:"isNum";a:2:{s:8:"optional";b:1;s:4:"type";s:20:"bool hebrew numbers ";}s:4:"year";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Number ";}}s:6:"source";s:27:" return _MONTHS[monthNum];";s:7:"summary";s:53:"This function return month written in Hebrew numerals";s:8:"examples";a:1:{i:0;s:131:" var date1 = new dojox.date.HebrewDate(); document.writeln(dojox.date.HebrewNumerals.getMonthHebrewLetters(date1.getMonth());";}}s:49:"dojox.date.HebrewNumerals.parseMonthHebrewLetters";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"monthStr";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:223:" var monnum = dojox.date.HebrewNumerals.parseDayHebrewLetters(monthStr) - 1; if(monnum == -1){ console.warn("The month name is incorrect , set 0"); // TODO: perhaps throw instead? monnum = 0; } return monnum;";s:7:"summary";s:202:"This function return month in format number from the month written in Hebrew word or numbers-letters the return number is index in month name array, to use it for setMont, do correction for leap year";s:8:"examples";a:1:{i:0;s:257:" var date = new dojox.date.HebrewDate(); var number = dojox.date.HebrewNumerals.parseMonthHebrewLetters("תמוז"); if ( !date.isLeapYear(date.getFullYear()) && number >5) {number--;} date.setMonth(number); month number from 0 to 12";}}s:25:"dojox.date.HebrewNumerals";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:10:"dojox.date";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}