In this article, you will learn how to convert the Julian Day count to a Jewish date using jdtojewish() function in PHP.
What is the syntax of the jdtojewish() function in PHP?
jdtojewish(jd,hebrew,fl);
Parameter | Description |
---|---|
jd | Julian Day Number – Required |
hebrew | Optional – When set to true – gives hebrew output Set to false by default |
fl | Optional – Selects Hebrew format out the following formats CAL_JEWISH_ADD_ALAFIM_GERESH CAL_JEWISH_ADD_ALAFIM CAL_JEWISH_ADD_GERESHAYI |
What is the syntax of the jdtojewish() function
Example 1. In the following example, we simply convert Julian Date to a Jewish date.
<?php
$j_d=jdtojewish(1881031);
echo $j_d;
?>