jdtojulianCONVERTS a
Julian Day Number, (JDN) to a
Julian Calendar date.
<?php
str jdtojulian ( int $julianday )
where,
$julianday = A Julian Day Number, (JDN)
?>
$julianday
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 4714 BC, such use may not be meaningful.
The Gregorian Calendar was not instituted until October 15, 1582, (or October 5, 1582 in the Julian Calendar).
Some countries did not accept it until much later.
For example, Britain converted in 1752, The USSR in 1918 and Greece in 1923.
Most European countries used the Julian Calendar prior to the Gregorian.
This function can be considered inverse to the function juliantojd.
EXERCISE
<?php
$jdc01 = 1;
$jdtojul01 = jdtojulian($jdc01);
echo $jdc01 . '<sub>JDN</sub> => ' . $jdtojul01 . '<sub>(month/day/year) Julian</sub>';
?>
EXERCISE
<?php
$now02 = microtime(1);
$m02 = idate('m', $now02);
$d02 = idate('d', $now02);
$y02 = idate('Y', $now02);
$gregtojdc02 = gregoriantojd($m02, $d02, $y02);
echo $m02 . '-' . $d02 . '-' . $y02 . '<sub>(month-day-year) Gregorian</sub> =<br>= ' . $gregtojdc02 . '<sub>JDN</sub> =<br>= ';
$jdtojulian02 = jdtojulian($gregtojdc02);
echo $jdtojulian02 . '<sub>(month/day/year) Julian</sub>';
?>