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);
?>

Run Example

Definition and Usage

frenchtojd() Function converts the date 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, the French government used it for about 12 years. This function only converts dates from 1 to 14 years (Gregorian date September 22, 1792 - September 22, 1806).

Tip:See jdtofrench() Function, it is used to convert Julian Day count to the French Republican Calendar date.

Syntax

frenchtojd(month,day,year);
Parameter Description
month Required. The number from 1 to 13, specifying the month.
day Required. The number from 1 to 30, specifying the day.
year Required. The number from 1 to 14, specifying the year.

Technical Details

Return Value: Return Julian Day number.
PHP Version: 4+