PHP JewishToJD() Function

Example

Convert the date in the Jewish calendar to the Julian Day count:

<?php
$jd=jewishtojd(9,25,2016);
echo $jd;
?>

Run Example

Definition and Usage

The jewishtojd() function converts the date in the Jewish calendar to the Julian Day count.

Note:The valid date range for the function is from the year 3761 BC in the Jewish calendar. The Jewish calendar has existed for thousands of years, but there was no formalized method of calculating the starting month in the early days. The first month of each year is the first observed new moon.

Tip:See also jdtojewish() The function converts the Julian Day count to the date in the Jewish calendar.

Syntax

jewishtojd(month,day,year);
Parameter Description
month Required. Specifies a month between 1 and 13, numeric value.
day Required. Specifies a day between 1 and 30, numeric value.
year Required. Specifies a year between 1 and 9999, numeric value.

Technical Details

Return Value: Returns the Julian Day number.
PHP Version: 4+