Current Location: Home> Function Categories> juliantojd

juliantojd

Convert the dates in the Julian calendar to the Julian day count.
Name:juliantojd
Category:Uncategorized
Programming Language:php
One-line Description:Convert the dates in the Julian calendar to the Julian day count.

Definition and usage

juliantojd() converts the dates in the Julian calendar into the Julian day count.

Note: The effective range of dates processed by this function is from the Caesar calendar 4713 BC to 9999 AD. This function can be calculated until 4713 BC, but this is not very meaningful. The Julian calendar was established in 46 BC, but some details did not settle until 8 AD. Different cultures define the beginning of the year differently - not all countries identify with January as the first month of each year. Please remember that the current world-wide calendar is the Gregorian calendar. gregoriantojd() function is used to convert these dates into their Julian day counts.

Tip: See the jdtojulian() function to convert Julian day count to date in Julian calendar.

Example

Convert the dates in the Julian calendar to the Julian date count, and then convert them back to the dates in the Julian calendar:

 <?php
$jd = juliantojd ( 9 , 25 , 2016 ) ;
echo $jd . "<br>" ;
echo jdtojulian ( $jd ) ;
?>

Run the instance

grammar

 juliantojd ( month , day , year ) ;
parameter describe
month Required. Required. Specifies the number of months from 1 to 12.
day Required. Specifies the number value of the day between 1 and 31 days.
year Required. Specifies the number of years between -4713 and 9999.
Similar Functions
Popular Articles