Home >Java >javaTutorial >Translate the following in PHP: JewishToJD() function
The JewishToJD() function converts a Jewish date to a Julian day count. It returns a Julian day number.
jewishtojd(month, day, year)
Month − Specifies the number of the month, ranging from 1 to 13
day − Specify the date as a number from 1 to 30
year − Specify the year as a number between 1 and 9999
The jewishtojd() function returns a Julian day number.
The following is an example −
Real-time demonstration
<?php $res = jewishtojd(10,25,2017); echo $res; ?>
1084605
The above is the detailed content of Translate the following in PHP: JewishToJD() function. For more information, please follow other related articles on the PHP Chinese website!