PHP: Juliantojd() function
Converts a Julian Calendar date to Julian Day Count
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
Previous: JewishToJD
Next: unixtojd
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/php/function-reference/JulianToJD.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics