Current Location: Home> Function Categories> frenchtojd

frenchtojd

Convert dates from the French Republic to Julian day counts.
Name:frenchtojd
Category:Uncategorized
Programming Language:php
One-line Description:Convert dates from the French Republic to Julian day counts.

Definition and usage

frenchtojd() function converts the dates of the French republic calendar into Julian day counts.

Tip: The French Republican calendar was a calendar proposed during the French Revolution. It was used by the French government for about 12 years since the late 1793. This function converts only dates within 1 to 14 years (Gregori dates September 22, 1792 - September 22, 1806).

Tip: See jdtofrench() 函数for converting Julian days counts to dates in the French republican calendar.

Example

Convert the dates of the French Republic to Julian day counts and then convert them back to the dates of the French Republic:

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

Run the instance

grammar

 frenchtojd ( month , day , year ) ;
parameter describe
month Required. Numbers from 1 to 13, specified months.
day Required. Numbers from 1 to 30, specified date.
year Required. Numbers from 1 to 14, specify year.
Similar Functions
Popular Articles