Convert a Julian calendar date to a Julian calendar date and back to a Julian calendar date:
<?php$jd=juliantojd(6,20,2007);echo $jd . "<br>";echo jdtojulian($jd);?>juliantojd() Converts a Julian calendar date to a Julian day count.
Note: The valid range of dates processed by this function is from 4713 BC to 9999 AD in the Caesar calendar. This function can calculate up to 4713 BC, but this is not very meaningful. The Julian calendar was established in 46 BC, but some details were not stabilized until 8 AD. Different cultures define the start of the year differently - not all countries agree that January is the first month of the year. Please remember that the current calendar used worldwide is the Gregorian calendar. The gregoriantojd() function is used to convert these dates to their Julian day counts.
Tip: See the jdtojulian() function to convert Julian day counts to Julian calendar dates.
juliantojd( month,day,year);
parameter | describe |
---|---|
month | Required. A number from 1 to 12 specifying the month. |
day | Required. A number from 1 to 31 specifying the day. |
year | Required. A number from -4713 to 9999 specifying the year. |
Return value: | Returns the Julian day number. |
---|---|
PHP version: | 4+ |