Computer >> Computer tutorials >  >> Programming >> PHP

JDToFrench() function in PHP


The JDToFrench() function converts a Julian day count to a French Republican date.

Syntax

jdtofrench(julian_day);

Parameters

  • julian_day − A Julian Day number

Return

The JDToFrench() function returns the french revolution date as a string in the form "month/day/year".

Example

The following is an example −

<?php
   $res = frenchtojd(11,11,18);
   echo $res . "<br>";
   echo jdtofrench($res);
?>

Output

The following is the output −

2380715
5/8/14