PHP juliantojd () function
Examples
The Julian calendar date is converted to Julian day count, date back to the Julian calendar then converted:
$jd=juliantojd(6,20,2007);
echo $jd . "<br>";
echo jdtojulian($jd);
?>
Running instance »
Definition and Usage
juliantojd () to convert the Julian calendar dates to Julian day count.
Note: The effective range of the function that handles the date of Caesar calendar 4713 BC to AD 9999. This function can be calculated to 4713 BC, but it is not very meaningful. The Julian calendar was created in 46 BC, but some of the details until 8 AD was stabilized. Different cultures to begin to define a different year - is not recognized in all countries in January is the first month of each year. Keep in mind that the current world-wide calendar is the Gregorian calendar. gregoriantojd () function is used to convert such dates to their Julian Day count.
Tip: See jdtojulian () function to a Julian day count to a Julian calendar date.
grammar
参数 | 描述 |
---|---|
month | 必需。一个从 1 到 12 的数字,规定月。 |
day | 必需。一个从 1 到 31 的数字,规定日。 |
year | 必需。一个从 -4713 到 9999 的数字,规定年。 |
technical details
return value: | Returns the Julian day numbers. |
---|---|
PHP version: | 4+ |
PHP Calendar Reference Manual