Curriculum
Course: PHP Basic
Login

Curriculum

PHP Basic

PHP Install

0/1

PHP Casting

0/1

PHP Constants

0/1

PHP Magic Constants

0/1

PHP Operators

0/1

PHP Reference

0/276
Text lesson

jdtojewish()

Example

Convert a Julian Day Number to a Jewish calendar date.

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

Definition and Usage

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

Tip: Use the jewishtojd() function to convert a Jewish date to a Julian Day Number.

Syntax

jdtojewish(jd,hebrew,fl);

Parameter Values

 

Parameter

Description

jd

Required. A Julian Day Number.

hebrew

Optional. Set to TRUE for Hebrew output format; FALSE is the default.

fl

Optional. Specifies the Hebrew output format. The available formats are:

·         CAL_JEWISH_ADD_ALAFIM_GERESH

·         CAL_JEWISH_ADD_ALAFIM

·         CAL_JEWISH_ADD_GERESHAYIM

Technical Details

Return Value:

Returns a Jewish date in the format “month/day/year”.

PHP Version:

4+

Changelog:

The hebrew parameter was introduced in PHP 4.3, while the fl parameter was added in PHP 5.0.