Home >Java >javaTutorial >Translate the following in PHP: JewishToJD() function

Translate the following in PHP: JewishToJD() function

王林
王林forward
2023-08-19 11:49:101327browse

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.

grammar

jewishtojd(month, day, year)

parameter

  • 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

return

The jewishtojd() function returns a Julian day number.

Example

The following is an example −

Real-time demonstration

<?php
   $res = jewishtojd(10,25,2017);
   echo $res;
?>

Output

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete