gregoriantojd() int gregoriantojd ( int $month , int $day , int $year )
Parameter | DESCRIPTION |
$year | Required : Year in four digits between -4714 and 9999 |
$day | Required : between 1 to 31 |
$month | Required : Number from 1 to 12 |
Output is The julian day for the given gregorian date as an integer.
Examples
<?Php
echo gregoriantojd(12,22,2021); // Output is 2459571
echo "<br>";
echo gregoriantojd(13,22,2021); // Output is 0
echo "<br>";
echo gregoriantojd(11,32,2019); // Output is 0
echo "<br>";
echo gregoriantojd(2,30,2019); // Output is 2458545
?>
This article is written by plus2net.com team.
plus2net.com
|