The FrenchToJD() function in PHP converts a French Republican date to a Julian day count.
Note − The FrenchToJD() function convert dates in years 1 through 14 (Gregorian dates 22 September 1792 - 22 September 1806).
Syntax
frenchtojd(month, day ,year);
Parameters
month − Specifies the month as a number from 1 (for Vendémiaire) to 13 (for the period of 5-6 days at the end of each year)
day − The day as a number from 1 to 30
year − The year as a number between 1 and 14
Return
The FrenchToJD() function returns a Julian day number.
Example
The following is an example −
<?php $res = frenchtojd(4,8,14); echo $res . "<br>"; echo jdtofrench($res); ?>
Output
The following is the output −
2380685 4/8/14