I l@ve RuBoard Previous Section Next Section

jdtojulian

string jdtojulian(int JD) 

Converts a Julian day count to a Julian calendar date.

Returns:

Julian calendar date; 0/0/0 if JD is an invalid Julian day count

Description:

jdtojulian() converts a Julian day count to a Julian calendar date. The format of the date string is MM/DD/YY.

The Julian calendar (not to be confused with Julian day count) was adopted by the Roman empire in 46 B.C. The calendar marked a significant change from the earlier Roman calendar systems and it's speculated that it's based on the calendar of another culture—perhaps Babylon. This calendar was adopted by much of the western world and remained in use in some areas until the 20th century. To find out more on this subject, consult your local library or search for Julian calendar on the Internet.

Version:

3+, 4+

See also:

To convert a Julian day count to a Julian calendar date:

juliantojd() 

To get a Julian day count from another calendar system, see the various *tojd functions.

Example:

Display the Julian calendar date for a given Julian day count
$julian_day = 1000000; 
list (, $day, $year) = explode ('/', jdtojulian ($julian_day)); 
$month = jdmonthname ($julian_day, 3); 

// If the year is negative, then it is a BC year 
$year = ($year < 0) ? abs ($year) . ' BC' : "$year AD"; 

echo "$day $month $year"; 
    I l@ve RuBoard Previous Section Next Section