Convert a French Republican calendar date to a Julian day count and back to a French Republican calendar date:
<?php$jd=frenchtojd(3,3,14);echo $jd . "<br>";echo jdtofrench($jd);?>The frenchtojd() function converts a French Republican calendar date to a Julian day count.
Tip: The French Republican Calendar was a calendar developed during the French Revolution and used by the French government for approximately 12 years starting in late 1793. This function only converts dates between 1 and 14 years (Gregorian dates September 22, 1792 - September 22, 1806).
Tip: See the jdtofrench() function for converting Julian day counts to French Republican calendar dates.
frenchtojd( month,day,year);
parameter | describe |
---|---|
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. |
Return value: | Returns the Julian day number. |
---|---|
PHP version: | 4+ |