I l@ve RuBoard Previous Section Next Section

jewishtojd

int jewishtojd(int month, int day, int year) 

month

Month number from the Jewish calendar

day

Day of month number from the Jewish calendar

year

Year number from the Jewish calendar

Converts a Jewish calendar date to a Julian day count.

Returns:

Julian day count; 0 if any parameter is outside the valid range

Description:

jewishtojd() converts a Jewish calendar date to a Julian day count. If any parameter is set outside the acceptable ranges, the function returns 0.

The acceptable ranges for the parameters of this function are shown in the following table.

Parameter

Acceptable Range of Values

month

1 to 13

day

1 to 30

year

1 to at least 10000

Version:

3+, 4+

See also:

To convert a Julian day count to a Jewish calendar date:

jdtojewish() 

To convert a Julian day count to another calendar system, see the other jdto* functions.

Example:

Display the Julian day count for Rosh Hashanah of 2401
echo jewishtojd (1, 1, 2401); 
    I l@ve RuBoard Previous Section Next Section