PHP jdtojewish() Function

P
PHP jdtogregorian() function
PHP jdtojulian() function

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);
ParameterDescription
jdJulian Day Number – Required
hebrewOptional – When set to true – gives hebrew output
Set to false by default
flOptional – Selects Hebrew format out the following formats
CAL_JEWISH_ADD_ALAFIM_GERESH
CAL_JEWISH_ADD_ALAFIM
CAL_JEWISH_ADD_GERESHAYI
PHP jdtojewish() method

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;
?>
PHP jdtogregorian() function
PHP jdtojulian() function

Add comment

Tutor Network

Share this

Learn PHP from A to Z