PHP jdtojewish()Functions

PHP Calendar 参考手册PHP Calendar Reference Manual

Examples

Converts a Julian Day Count to a date in the Jewish calendar:

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

Run Example »

Definition and Usage

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

Tip:See also jewishtojd()the function that converts a date in the Jewish calendar to a Julian Day Count.

Syntax

jdtojewish(jd,hebrew,fl);

Parameters Description
jd Required. A number (Julian Day Count).
hebrew Optional. When set to TRUE, indicates Hebrew output format. Default is FALSE.
fl Optional. Defines the Hebrew output format. Available formats are:
  • CAL_JEWISH_ADD_ALAFIM_GERESH
  • CAL_JEWISH_ADD_ALAFIM
  • CAL_JEWISH_ADD_GERESHAYIM

Technical Details

Return Value: Returns a date in the Jewish calendar in the "month/day/year" format.
PHP Version: 4+
Changelog: hebrewThe parameter was added in PHP 4.3,flThe parameter was added in PHP 5.0.


PHP Calendar 参考手册PHP Calendar Reference Manual Other Extensions