Convert a French Republican date to a Julian Day Count and then back to a French Republican date.
<?php $jd=frenchtojd(3,3,14); echo $jd . “<br>”; echo jdtofrench($jd); ?> |
The frenchtojd() function converts a date from the French Republican Calendar to a Julian Day Count.
Tip: The French Republican Calendar, introduced during the French Revolution, was used by the French government for approximately twelve years, from late 1793. This function only handles dates from years 1 through 14 (Gregorian dates September 22, 1792 – September 22, 1806).
Tip: Use the jdtofrench() function to convert a Julian Day Count back to a French Republican date.
frenchtojd(month,day,year); |
Parameter |
Description |
month |
Required. Specifies the month as a number ranging from 1 to 13. |
day |
Required. Specifies the day as a number between 1 and 30. |
year |
Required. Specifies the year as a number from 1 to 14. |
Return Value: |
Returns a Julian Day number |
PHP Version: |
4+ |