PHP JDToGregorian() Function
Example
Convert the date of the Gregorian calendar to Julian day count and then back to the date of the Gregorian calendar:
<?php $jd=gregoriantojd(9,25,2016); echo $jd . "<br>"; echo jdtogregorian($jd); ?>
Definition and Usage
The jdtogregorian() function converts Julian day count to the date of the Gregorian calendar.
Tip:See also gregoriantojd() Function, used to convert the date of the Gregorian calendar to Julian day count.
Syntax
jdtogregorian(jd);
Parameter | Description |
---|---|
jd | Required. Number (Julian day count). |
Technical Details
Return Value: | Returns the date of the Gregorian calendar in the format "month/day/year". |
---|---|
PHP Version: | 4+ |