Home > Java > javaTutorial > body text

Translate the following in PHP: JewishToJD() function

王林
Release: 2023-08-19 11:49:10
forward
1263 people have browsed it

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)
Copy after login

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;
?>
Copy after login

Output

1084605
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!