PHP jewishtojd() Function

PHP jewishtojd Function


Definition:

The jewishtojd() function is a built-in function in PHP.

The jewishtojd() function converts a date from the Jewish Calendar to a Julian Day Count.

Note: Although this function can handle dates back to year 1 (3761 B.C.), notice that in the beginning there was no formula to determine the start of a month. A new month was started when the new moon was first observed.

Tip: Look at the jdtojewish() function to convert a Julian Day Count to a Jewish date.

Syntax :

  jewishtojd(month,day,year);

Parameter
Parameter Description
month Required. Specifies the month as a number from 1 to 13
day Required. Specifies the day as a number from 1 to 30
year Required. Specifies the year as a number between 1 and 9999

 Given following example Convert a Jewish date to a Julian Day Count:

Output : 1081554