PHP - Function FrenchToJD()


Advertisements


Syntax

frenchtojd ( $month, $day, $year );

Definition and Usage

Converts a date from the French Republican Calendar to a Julian Day Count.

This routine only convert dates in years 1 through 14 (Gregorian dates 22 September 1792 through 22 September 1806). This more than covers the period when the calendar was in use.

Parameters

ParameterDescription
monthRequired. The month as a number from 1 to 13.
dayRequired. The day as a number from 1 to 30
yearRequired. The year as a number between 1 and 14

Return Value

The julian day for the given french revolution date as an integer.

Example

Try out following example:

<?php
$d=frenchtojd(3,3,14);
echo($d);
?> 

This will produce following result:

2380650

php_function_reference.htm

Advertisements