juliantojd
Description
The juliantojd of Calendar for PHP 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
Returns the julian day for the given julian date as an integer.
Examples
1
<? $month = 1; $day = 1; $year = 1; $return = juliantojd($month, $day, $year); echo $return; ?>
1721424