PHP jdtojulian() function

P
PHP jdtojewish() Function
PHP jdtounix() function

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);
ParameterDetails
jdJulian Day Number – Required
PHP jdtojulian() method

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;
?>
PHP jdtojewish() Function
PHP jdtounix() function

Add comment

Tutor Network

Share this

Learn PHP from A to Z