In this article, you will learn how to use the PHP jdtojulian() function to convert a Julian Day Count to a Julian Date.
What is the syntax of the jdtojulian() function in PHP?
jdtojulian(jd);
Parameter | Details |
---|---|
jd | Julian Day Number – Required |
Examples of the jdtojulian() function
Example 1. In the following example, we simply convert a Julian Day Count to Julian Date and then convert the Date Date back to Julian Day Count.
<?php
jDate = dtojulian(6,20,2007);
$jday=juliantojd(jDate);
echo $jday;
?>