Convert a Julian date to a Julian Day Number and then convert it back to a Julian date.
<?php $jd=juliantojd(6,20,2007); echo $jd . “<br>”; echo jdtojulian($jd); ?> |
The jdtojulian()
function converts a Julian Day Number to a Julian calendar date.
Tip: Use the juliantojd()
function to convert a Julian calendar date to a Julian Day Number.
jdtojulian(jd); |
Parameter |
Description |
jd |
Required. A Julian Day Number. |
Return Value: |
Returns a Julian date in the format “month/day/year”. |
PHP Version: |
4+ |