Definition
The juliantojd() function converts a Julian Calendar date to Julian Day Count.
Syntax
juliantojd(month, day, year)
Parameters
Parameter | Description |
---|---|
month |
Required. Specifies the month as a number from 1 to 12. |
day |
Required. Specifies the day as a number from 1 to 31. |
year |
Required. Specifies the year as a number between -4713 and 9999. |
Example
<?php
$jd = juliantojd(12, 1, 2021);
echo $jd;