PHP frenchtojd() Function
Example
Convert a French Republican calendar date to a Julian day count and then back to a French Republican date:
"; echo jdtofrench($jd); ?>Run Example »
Definition and Usage
The frenchtojd() function converts a French Republican calendar date to a Julian day count.
**Tip:** The French Republican calendar was introduced during the French Revolution; the French government used it for about 12 years starting in late 1793. This function only converts dates within years 1 to 14 (Gregorian dates September 22, 1792 - September 22, 1806).
**Tip:** See the jdtofrench() function, which converts a Julian day count to a 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+ |
PHP Calendar Reference Manual