jewishtojd


php apg

CONVERTS a date in the Jewish Calendar to a Julian Day Number, (JDN).



<?php

int jewishtojd 
int $month int $day int $year )


where,

$month The month number

$day 
The day number

$year 
The year number

?>

 $month 


The month number.



 $day 


The day number.



 $year 


The year number.





Julian Day Number, (JDN) also known as Julian Day Count, (JDC), indicates the number of days elapsed since January 1, 4713 BC, Gregorian Calendar.

The Julian Calendar was introduced by Júlio Cesar in 46 BC, according the Gregorian Calendar.

The valid range for the Gregorian Calendar is from November 25, 4714 BC to at least December 31, 9999 AD.

Although this function can handle dates all the way back to the year 1, (3761 BC), such use may not be meaningful.

The Jewish Calendar has been in use for several thousand years, but in the early days there was no formula to determine the start of a month.

A new month was started when the new moon was first observed.



  1 EXERCISE   

<?php
 
$mm01 
6

$dd01 1

$yy01 5779

$jewishtojd01 jewishtojd($mm01$dd01$yy01);

echo 
$mm01 '-' $dd01 '-' $yy01 
 
'<sub>(month-day-year)&nbsp;&nbsp;Jewish Calendar</sub> => ' 
 
$jewishtojd01 '<sub>JDC</sub>';

?>