PHP JDToJewish() Function

Example

Convert Julian day count to the date of the Jewish calendar:

<?php
$jd=jdtojewish(1084191);
echo $jd;
?>

Run Example

Definition and Usage

The jdtojewish() function converts Julian day count to the date of the Jewish calendar.

Tip:See also jewishtojd() The function converts the date of the Jewish calendar to Julian day count.

Syntax

jdtojewish(jd,hebrew,fl);
Parameter Description
jd Required. Number (Julian day count).
hebrew Optional. When set to TRUE, it indicates the Hebrew output format. The default is FALSE.
fl

Optional. Defines the Hebrew output format, available formats are:

  • CAL_JEWISH_ADD_ALAFIM_GERESH
  • CAL_JEWISH_ADD_ALAFIM
  • CAL_JEWISH_ADD_GERESHAYIM

Technical Details

Return Value: Returns the date of the Jewish calendar in the format "month/day/year".
PHP Version: 4+
Update Log: hebrew The parameter was added in PHP 4.3,fl The parameter was added in PHP 5.0.