PHP frenchtojd() Function
Definition
The frenchtojd() function converts a date from the French Republican Calendar to a Julian Day Count.
Syntax
PHP frenchtojd() Function has the following syntax.
frenchtojd(month,day,year);
Parameter
Parameter | Is Required | Description |
---|---|---|
month | Required. | Month as a number from 1 to 13 |
day | Required. | Day as a number from 1 to 30 |
year | Required. | Year as a number from 1 to 14 |
Example
Convert a French Republican date to a Julian Day Count and back to a French Republican date:
<?php// w ww . j av a2 s .c o m
$jd=frenchtojd(3,3,14);
echo $jd . "\n";
echo jdtofrench($jd);
?>
The code above generates the following result.