PHP frenchtojd () function
Examples
The French Republican calendar date is converted to Julian day count, date back to the French Republican calendar and then converted:
<?php
$jd=frenchtojd(3,3,14);
echo $jd . "<br>";
echo jdtofrench($jd);
?>
$jd=frenchtojd(3,3,14);
echo $jd . "<br>";
echo jdtofrench($jd);
?>
Running instance »
Definition and Usage
frenchtojd () function to convert the French Republican Calendar date to Julian day count.
Tip: French Republican Calendar is a calendar proposed during the French Revolution, from late 1793, the French government used about 12 years. This function only converts a date 1-14 years (Gregorian date of September 22, 1792 - September 22, 1806).
Tip: See jdtofrench () function is used to Julian day count to a French Republican calendar date.
grammar
frenchtojd( month,day,year);
参数 | 描述 |
---|---|
month | 必需。一个从 1 到 13 的数字,规定月。 |
day | 必需。一个从 1 到 30 的数字,规定日。 |
year | 必需。一个从 1 到 14 的数字,规定年。 |
technical details
return value: | Returns the Julian day numbers. |
---|---|
PHP version: | 4+ |
PHP Calendar Reference Manual