PHP frenchtojd() Function

Definition

The frenchtojd() function converts a date from the French Republican Calendar to a Julian Day Count.

Syntax

PHP frenchtojd() Function has the following syntax.

frenchtojd(month,day,year);

Parameter

ParameterIs RequiredDescription
monthRequired.Month as a number from 1 to 13
dayRequired.Day as a number from 1 to 30
yearRequired.Year as a number from 1 to 14

Example

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


<?php// w  ww  .  j av  a2 s .c o  m
$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