PHP: jdtojewish() function
Converts a Julian day count to a Jewish calendar date
The jdtojewish() function is used to convert a Julian day count to a Jewish calendar date.
Version:
(PHP 4 and above)
Syntax:
jdtojewish(julian_day_count, hebrew, f1)
Parameters:
Name | Description | Required / Optional |
Type |
---|---|---|---|
julian_day_count | A Julian day number. | Required | Integer |
hebrew | Set TRUE, if you want the output in Hebrew format. | Optional | Boolean |
f1 | The available formats are: CAL_JEWISH_ADD_ALAFIM_GERESH, CAL_JEWISH_ADD_ALAFIM, CAL_JEWISH_ADD_GERESHAYIM. | Optional | Integer |
Return value:
The Jewish date as a string in "month/day/year" format.
Value Type: String.
Example:
<?php
$julian_day_count = jdtojewish(2379950);
echo($julian_day_count);
?>
Sample Output:
4/10/5564
View the example in the browser
See also
Previous: JDToGregorian
Next: JDToJulian
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/php/function-reference/jdtojewish.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics