PHP jewishtojd() Function
Definition
The jewishtojd() function converts a date from the Jewish Calendar to a Julian Day Count.
Syntax
PHP jewishtojd() Function has the following syntax.
jewishtojd(month,day,year);
Parameter
Parameter | Is Required | Description |
---|---|---|
month | Required. | Month value as a number from 1 to 13 |
day | Required. | Day value as a number from 1 to 30 |
year | Required. | Year value as a number between 1 and 9999 |
Return
PHP jewishtojd() Function returns a Julian Day number.
Example
Convert a Jewish date to a Julian Day Count
<?php
$jd=jewishtojd(6,20,2012);
echo $jd;
?>
The code above generates the following result.