Convert a Jewish date to a Julian Day Number.
<?php $jd=jewishtojd(6,20,2007); echo $jd; ?> |
The jewishtojd()
function converts a Jewish calendar date to a Julian Day Number.
Note: While this function can handle dates as far back as year 1 (3761 B.C.), it’s important to note that in ancient times, months began when the new moon was first observed, rather than being calculated by a formula.
Tip: Use the jdtojewish()
function to convert a Julian Day Number to a Jewish calendar date.
jewishtojd(month,day,year); |
Parameter |
Description |
month |
Required. Specifies the month as a number between 1 and 13. |
day |
Required. Specifies the day as a number between 1 and 30. |
year |
Required. Specifies the year as a number between 1 and 9999. |
Return Value: |
Returns a Julian Day Number. |
PHP Version: |
4+ |