PHP jdtofrench() Function

Definition

The jdtofrench() function converts a Julian Day Count to a French Republican date.

Syntax

PHP jdtofrench() Function has the following syntax.

jdtofrench(jd);

Parameter

  • jd - Required. A Julian Day number

Return

PHP jdtofrench() Function returns a French Republican date in format "month/day/year".

Example

Convert a French Republican date to a Julian Day Count and back to a French Republican date:


<?php//from w w w  .j av  a  2s .com
$jd=frenchtojd(3,3,14);
echo $jd . "\n";
echo jdtofrench($jd);
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions