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.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions