Backend Development 2 min read

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.

Laravel Tech Community
Laravel Tech Community
Laravel Tech Community
FrenchToJD: Convert French Republican Calendar Date to Julian Day Number (PHP)

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.

BackendPHPDate ConversionJulian Dayfrench-republican-calendar
Laravel Tech Community
Written by

Laravel Tech Community

Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.