PHP jdtojulian() Function
Definition
The jdtojulian() function converts a Julian Day Count to a Julian date.
Syntax
PHP jdtojulian() Function has the following syntax.
jdtojulian(jd);
Parameter
- jd - Required. A Julian Day number
Return
PHP jdtojulian() Function returns a Julian date in format "month/day/year".
Example
Convert a Julian date to a Julian Day Count and back to a Julian date:
<?php/*from www . ja v a 2s . com*/
$jd=juliantojd(6,20,2013);
echo $jd . "\n";
echo jdtojulian($jd);
?>
The code above generates the following result.