The juliantojd() function converts a date from the Julian Calendar to a Julian Day Count.
juliantojd(month,day,year);
Parameter | Is Required | Description |
---|---|---|
month | Required. | Month value as a number from 1 to 12 |
day | Required. | Day value as a number from 1 to 31 |
year | Required. | Year value as a number between -4713 and 9999 |
Convert a Jewish date to a Julian Day Count returns a Julian Day number.
Convert a Julian date to a Julian Day Count and back to a Julian date
<?php
$jd=juliantojd(6,20,2012);
echo $jd . "\n";
echo jdtojulian($jd);
?>
The code above generates the following result.