Home Menu

juliantojd

Converts a Julian Calendar date to Julian Day Count

Syntax

juliantojd ( int $month , int $day , int $year ) : int

Parameters

month

The month as a number from 1 (January) to 12 (December).

day

The day as a number from 1 to 31.

year

The year as a number between -4713 and 9999.

Return

The julian day for the given julian date as an integer.

Examples

<?

$month = 1;
$day = 1;
$year = 1;

$return = juliantojd($month, $day, $year);

echo $return;

?>
1721424

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms