jdtogregorian

Converts Julian Day Count to Gregorian date

Syntax

 jdtogregorian(int $julian_day): string

Parameters

julian_day

A julian day number as integer

Return

The gregorian date as a string in the form "month/day/year"

Examples

<?

$julian_day = unixtojd();

$return = jdtogregorian($julian_day);

echo $return;

?>
10/27/2021

PHP

Home Menu