w3resource

PHP: jdtojewish() function

Description

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

PHP Function Reference

Previous: JDToGregorian
Next: JDToJulian



Follow us on Facebook and Twitter for latest update.