PHP Tutorial - PHP jewishtojd() Function






Definition

The jewishtojd() function converts a date from the Jewish Calendar to a Julian Day Count.

Syntax

PHP jewishtojd() Function has the following syntax.

jewishtojd(month,day,year);

Parameter

ParameterIs RequiredDescription
monthRequired.Month value as a number from 1 to 13
dayRequired.Day value as a number from 1 to 30
yearRequired.Year value as a number between 1 and 9999

Return

PHP jewishtojd() Function returns a Julian Day number.





Example

Convert a Jewish date to a Julian Day Count


<?php
$jd=jewishtojd(6,20,2012);
echo $jd;
?>

The code above generates the following result.