FrenchToJD: Convert French Republican Calendar Date to Julian Day Number (PHP)
This article explains the PHP function FrenchToJD, which converts a date from the French Republican calendar (year 1‑14, month 1‑13, day 1‑30) into the corresponding Julian Day count, detailing its parameters, valid ranges, and return value.
The function int frenchtojd(int $month, int $day, int $year) converts a date from the French Republican calendar into its Julian Day number.
The French Republican calendar covered Gregorian dates from 22 September 1792 to 22 September 1806, corresponding to years 1 through 14.
Parameters
month : integer ranging from 1 to 13.
day : integer ranging from 1 to 30.
year : integer ranging from 1 to 14.
Return value
The function returns the Julian Day count for the specified French Revolutionary date.
Laravel Tech Community
Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.