PHP - Function FrenchToJD()


Advertisements


Syntax

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

Definition and Usage

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

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

Advertisements