PHP: jdtogregorian() function
Converts Julian Day Count to Gregorian date
The jdtogregorian() function is used to convert a Julian day count to a Gregorian date.
Version:
(PHP 4 and above)
Syntax:
jdtogregorian(julian_day_count)
Parameter:
Name | Description | Required / Optional |
Type |
---|---|---|---|
julian_day_count | A Julian day number. | Required | Integer |
Return value:
The gregorian date as a string in "month/day/year" format.
Value Type: String.
Example:
<?php
$julian_day_count = jdtogregorian(2379950);
echo($julian_day_count);
?>
Sample Output:
12/25/1803
View the example in the browser
See also
Previous: JDToFrench
Next: jdtojewish
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/php/function-reference/JDToGregorian.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics