Menu Riverview Church

JEWISHTOJD

Converts a date in the Jewish Calendar to Julian Day Count

SYNTAX

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

PARAMETERS

month

The month as a number from 1 to 13, where 1 means Tishri, 13 means Elul, and 6 and 7 mean Adar in regular years, but Adar I and Adar II, respectively, in leap years.

day

The day as a number from 1 to 30. If the month has only 29 days, the first day of the following month is assumed.

year

The year as a number between 1 and 9999

RETURN

The julian day for the given jewish date as an integer.

EXAMPLES

MONTH DAY YEAR

347998

OVERFLOW

348117
348117

PHP