Example
Convert a Jewish date to a Julian Day Count:
<?php
$jd=jewishtojd(6,20,2007);
echo $jd;
?>
Run example »
Definition and Usage
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 | 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 |
Technical Details
Return Value: | Returns a Julian Day number |
---|---|
PHP Version: | 4+ |
< PHP Calendar Reference