PHP jewishtojd()Functions
Example
Convert a Jewish calendar date to a Julian Day Count:
<?php
$jd=jewishtojd(6,20,2007);
echo $jd;
?>
$jd=jewishtojd(6,20,2007);
echo $jd;
?>
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 from 3761 BC in the Jewish calendar. The Jewish calendar has existed for thousands of years, but in early times there was no formulaic method for calculating the starting month. The first month of each year was determined by the first observed new moon.
Tip:See jdtojewish()The 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 Other Extensions