In this article, you will learn how to convert a Julian Day Count to a Gregorian date. Thanks to the name of the function which is showing the same meaning. Yes, the jdtogregorian() function converts a Julian Day Count to a Gregorian date.
What is the syntax of the jdtogregorian() function in PHP?
jdtogregorian(jd);
Parameters | Details |
---|---|
jd | Julian Day Number |
Examples of the jdtogregorian() function
Example 1. The following example converts a Julian Day Count to Gregorian Date and vice versa.
<?php
$gd = jdtogregorian(16,21,2005);
$jd=gregoriantojd($gd);
echo $gd;
?>