PHP JewishToJD() Function

Example

Convert Jewish calendar date to Julian Day count:

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

Run Example

Definition and Usage

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

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

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

Syntax

jewishtojd(month,day,year);
Parameter Description
month Required. Specify the month between 1 to 13, numeric value.
day Required. Specify the day between 1 to 30, numeric value.
year Required. Specify the year between 1 to 9999, numeric value.

Technical Details

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