PHP Tutorial - PHP jdtojewish() Function






Definition

The jdtojewish() function converts a Julian Day Count to a Jewish date.

Syntax

PHP jdtojewish() Function has the following syntax.

jdtojewish(jd,hebrew,fl);

Parameter

ParameterIs RequiredDescription
jdRequired.A Julian Day number
hebrewOptional.TRUE indicates Hebrew output format. FALSE is default.
flOptional.Defines the Hebrew output format.

The available formats are:

  • CAL_JEWISH_ADD_ALAFIM_GERESH
  • CAL_JEWISH_ADD_ALAFIM
  • CAL_JEWISH_ADD_GERESHAYIM




Return

PHP jdtojewish() Function returns a Jewish date in format "month/day/year".

Example

Convert a Julian Day Count to a Jewish date:


<?php
$jd=jdtojewish(1789430); 
echo $jd;
?>

The code above generates the following result.