jdtofrench


php apg

CONVERTS a Julian Day Number, (JDN) to a French Republican Calendar date.



<?php

str jdtofrench 
int $julian_day )


where,

$julian_day A Julian Day Number, (JDN)

?>

 $julian_day 


A Julian Day Number, (JDN).





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.

These routines only convert dates in years 1 through 14, (Gregorian dates 22 September 1792 through 22 September 1806).

This more than covers the period when the calendar was in use.



  1 EXERCISE   

<?php

$jdn01 
2375840;

$jdn02 2380952;


$jd2fr01 jdtofrench($jdn01);

$jd2fr02 jdtofrench($jdn02);


echo 
'The beginning of French Republican Calendar:<br>' 
$jdn01 ' <sub>(JDN)</sub> = ' $jd2fr01 
' <sub>(month/day/year)</sub>';

echo 
'<br><br>The end of French Republican Calendar:<br>' 
$jdn02 ' <sub>(JDN)</sub> = ' $jd2fr02 
' <sub>(month/day/year)</sub>';

?>