PHP FrenchToJD() Function
Example
Convert the date of the French Republican Calendar to Julian Day count and then back to the date of the French Republican Calendar:
<?php $jd=frenchtojd(3,3,14); echo $jd . "<br>"; echo jdtofrench($jd); ?>
Definition and Usage
The frenchtojd() function converts dates of the French Republican Calendar to Julian Day count.
Tip:The French Republican Calendar is a calendar proposed during the French Revolution, starting from late 1793, which the French government used for about 12 years. This function only converts dates from 1 to 14 years (Gregorian date September 22, 1792 - September 22, 1806).
Tip:See also jdtofrench() Function, used to convert Julian Day count to the French Republican Calendar date.
Syntax
frenchtojd(month,day,year);
Parameters | Description |
---|---|
month | Required. A number from 1 to 13, specifying the month. |
day | Required. A number from 1 to 30, specifying the day. |
year | Required. A number from 1 to 14, specifying the year. |
Technical Details
Return Value: | Returns the Julian Day number. |
---|---|
PHP Version: | 4+ |