PHP FrenchToJD() Functions

Example

Convert the date in the French Republican calendar to Julian Day count and then back to the date in the French Republican calendar:

<?php
$jd=frenchtojd(3,3,14);
echo $jd . "<br>";
echo jdtofrench($jd);
?>

Run Example

Definition and Usage

The frenchtojd() function converts dates in 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() Functions, 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+