Easy Tutorial
❮ Php Ajax Xml Func Array Merge ❯

PHP frenchtojd() Function

PHP Calendar Reference Manual

Example

Convert a French Republican date to a Julian Day count, and then back to a French Republican date:


Definition and Usage

The frenchtojd() function converts a French Republican date to a Julian Day count.

Note: The French Republican calendar was a calendar proposed during the French Revolution, which was used by the French government for about 12 years starting from late 1793. This function only converts dates within the range of 1 to 14 years (Gregorian dates from September 22, 1792, to September 22, 1806).

Note: See the jdtofrench() function to convert a Julian Day count back to a French Republican date.

Syntax

Parameter Description
month Required. A number from 1 to 13 that specifies the month.
day Required. A number from 1 to 30 that specifies the day.
year Required. A number from 1 to 14 that specifies the year.

Technical Details

Return Value: Returns the Julian Day number.
PHP Version: 4+
--- ---
❮ Php Ajax Xml Func Array Merge ❯