dojox/date/hebrew/numerals (version 1.10)

See the dojox/date/hebrew/numerals reference documentation for more information.

Method Summary

Methods

getDayHebrewLetters(day,nogrsh)

converts an integer to a String representing the number in Hebrew numerals. Can be formatted with or without geresh ׳

Parameter Type Description
day undefined
nogrsh boolean
Optional

Examples

Example 1

var date1 = new dojox.date.hebrew.Date();
document.writeln(dojox.date.hebrew.numerals.getDayHebrewLetters(date1.getDay());
getMonthHebrewLetters(month)

converts an integer representing a month to a String written in Hebrew numerals

Parameter Type Description
month int

Examples

Example 1

var date1 = new dojox.date.hebrew.Date();
document.writeln(dojox.date.hebrew.numerals.getMonthHebrewLetters(date1.getMonth());
getYearHebrewLetters(year)

converts the year from an integer to Hebrew numerals.

Parameter Type Description
year Number

Examples

Example 1

var date1 = new dojox.date.hebrew.Date();
document.writeln(dojox.date.hebrew.numerals.getYearHebrewLetters(date1.getFullYear());
parseDayHebrewLetters(day)

converts the string containing a Hebrew numeral to an integer

Parameter Type Description
day String hebrew

Examples

Example 1

var date1 = new dojox.date.hebrew.Date();
date1.setDate(dojox.date.hebrew.numerals.parseDayHebrewLetters('\u05d0')); // ALEPH
parseMonthHebrewLetters(monthStr)

converts a Hebrew numeral string representing a month to an integer. The returned value is indexed in the month name array. To use it for setMonth, do correction for leap year

Parameter Type Description
monthStr String

Examples

Example 1

var date = new dojox.date.hebrew.Date();
            var number = dojox.date.hebrew.numerals.parseMonthHebrewLetters("\u05ea\u05de\u05d5\u05d6"); // Tammuz
date.setMonth(number);
parseYearHebrewLetters(year)

converts the year written in Hebrew numerals to an integer

Parameter Type Description
year String hebrew year

Examples

Example 1

var date = new dojox.date.hebrew.Date();
            date.setFullYear(dojox.date.hebrew.numerals.parseYearHebrewLetters('\u05ea\u05e9\u05e1\u05f4\u05d7'));
Error in the documentation? Can’t find what you are looking for? Let us know!