JDTOJEWISH(3) 1 JDTOJEWISH(3)
jdtojewish - Converts a Julian day count to a Jewish calendar date
SYNOPSIS
string jdtojewish (int $juliandaycount, [bool $hebrew = false], [int $fl])
DESCRIPTION
Converts a Julian Day Count to the Jewish Calendar.
PARAMETERS
o $julianday
- A julian day number as integer
o $hebrew
- If the $hebrew parameter is set to TRUE, the $fl parameter is used for Hebrew, string based, output format.
o $fl
- The available formats are: CAL_JEWISH_ADD_ALAFIM_GERESH, CAL_JEWISH_ADD_ALAFIM, CAL_JEWISH_ADD_GERESHAYIM.
RETURN VALUES
The jewish date as a string in the form "month/day/year"
EXAMPLES
Example #1
jdtojewish(3) Example
<?php
echo jdtojewish(gregoriantojd(10, 8, 2002), true,
CAL_JEWISH_ADD_GERESHAYIM + CAL_JEWISH_ADD_ALAFIM + CAL_JEWISH_ADD_ALAFIM_GERESH);
?>
SEE ALSO
jewishtojd(3), cal_from_jd(3).
PHP Documentation Group JDTOJEWISH(3)