PHP jdtojewish() Function
Definition
The jdtojewish() function converts a Julian Day Count to a Jewish date.
Syntax
PHP jdtojewish() Function has the following syntax.
jdtojewish(jd,hebrew,fl);
Parameter
Parameter | Is Required | Description |
---|---|---|
jd | Required. | A Julian Day number |
hebrew | Optional. | TRUE indicates Hebrew output format. FALSE is default. |
fl | Optional. | Defines the Hebrew output format. |
The available formats are:
- CAL_JEWISH_ADD_ALAFIM_GERESH
- CAL_JEWISH_ADD_ALAFIM
- CAL_JEWISH_ADD_GERESHAYIM
Return
PHP jdtojewish() Function returns a Jewish date in format "month/day/year".
Example
Convert a Julian Day Count to a Jewish date:
<?php
$jd=jdtojewish(1789430);
echo $jd;
?>
The code above generates the following result.