Latest web development tutorials

PHP jdtogregorian () function

PHP Calendar Reference Manual PHP Calendar Reference Manual

Examples

The Gregorian calendar date is converted to Julian day count, back to Gregorian calendar date and then converted:

<?php
$jd=gregoriantojd(6,20,2007);
echo $jd . "<br>";
echo jdtogregorian($jd);
?>

Running instance »

Definition and Usage

jdtogregorian () function to convert a Julian day count Gregorian calendar date.

Tip: See gregoriantojd () function to the Gregorian calendar dates converted to Julian day count.

grammar

jdtogregorian( jd);

参数 描述
jd 必需。数字(儒略日计数)。

technical details

return value: In "month / day / year" returns the Gregorian calendar date.
PHP version: 4+


PHP Calendar Reference Manual PHP Calendar Reference Manual