Computer >> Computer tutorials >  >> Programming >> PHP

JewishToJD() function in PHP


The JewishToJD() function converts a Jewish date to a Julian day count. It returns a julian day number.

Syntax

jewishtojd(month, day, year)

Parameters

  • month − Specifies the month as a number from 1 to 13

  • day − Specifies the day as a number from 1 to 30

  • year − Specifies the year as a number between 1 and 9999

Return

The jewishtojd() function returns a julian day number.

Example

The following is an example −

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

Output

1084605