w3resource

PHP: Juliantojd() function

Description

The Juliantojd() function converts a Julian calendar date to a Julian day count. The range cover between 4713 B.C. to 9999 A.D.

Version:

(PHP 4 and above)

Syntax:

jewishtojd(month, day, year)

Parameters:

Name Description Required /
Optional
Type
month Specified month (1 (for January) to 12 (for December) ) from the Julian calendar. Required Integer
day Specified day ( from 1 to 31 ) from the Julian calendar. Required Integer
year Specified year (a number between -4713 and 9999 ) from the Julian calendar. Required Integer

Return value:

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

Value Type: Integer.

Example:

<?php
echo juliantojd (4, 11, 54);
?>

Sample Output:

1740882 

View the example in the browser

See also

PHP Function Reference

Previous: JewishToJD
Next: unixtojd



Follow us on Facebook and Twitter for latest update.