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

Sr.No Parameter & Description
1

month

Required. The month as a number from 1 to 13.

2

day

Required. The day as a number from 1 to 30

3

year

Required. 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 the following result −

2380650

php_function_reference.htm