PHP jdtojewish

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

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 :

  1. $julian_day_count = jdtojewish(2379950);  

  2. echo($julian_day_count);  

  3. ?>  

Output :

4/10/5564