Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP jewishtojd() Function

PHP jewishtojd() Function

PHP Calendar Reference Manual PHP Calendar Reference Manual

Example

Convert a Jewish calendar date to a Julian day count:

Run Example »


Definition and Usage

The jewishtojd() function converts a Jewish calendar date to a Julian day count.

**Note:** The valid range of dates handled by this function starts at 3761 B.C. in the Jewish calendar. The Jewish calendar has existed for thousands of years, but early on there was no formulaic way to calculate the start of a month. The first month of each year was the first observed new moon.

**Tip:** See the jdtojewish() function converts a Julian day count to a Jewish calendar date.

Syntax

jewishtojd(

month,day,year);

Parameters Description
month Required. A number from 1 to 13 specifying the month.
day Required. A number from 1 to 30 specifying the day.
year Required. A number from 1 to 9999 specifying the year.

Technical Details

Return Value: Returns the Julian day number.
PHP Version: 4+

PHP Calendar Reference Manual PHP Calendar Reference Manual