PHP jdtofrench() Function

In this chapter you will learn:

  1. Definition for PHP jdtofrench() Function
  2. Syntax for PHP jdtofrench() Function
  3. Parameter for PHP jdtofrench() Function
  4. Return value for PHP jdtofrench() Function
  5. Example for 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//j a  v a2 s . c o  m
$jd=frenchtojd(3,3,14);
echo $jd . "\n";
echo jdtofrench($jd);
?>

The code above generates the following result.

Next chapter...

What you will learn in the next chapter:

  1. Definition for PHP jdtogregorian() Function
  2. Syntax for PHP jdtogregorian() Function
  3. Parameter for PHP jdtogregorian() Function
  4. Return value for PHP jdtogregorian() Function
  5. Example - Convert a Gregorian date to a Julian Day Count and back to a Gregorian date
Home » PHP Tutorial » PHP Calendar Functions
PHP 5 Predefined Calendar Constants
PHP cal_days_in_month() Function
PHP cal_from_jd() Function
PHP cal_info() Function
PHP cal_to_jd() Function
PHP easter_date() Function
PHP easter_days() Function
PHP frenchtojd() Function
PHP gregoriantojd() Function
PHP jddayofweek() Function
PHP jdmonthname() Function
PHP jdtofrench() Function
PHP jdtogregorian() Function
PHP jdtojewish() Function
PHP jdtojulian() Function
PHP jdtounix() Function
PHP jewishtojd() Function
PHP juliantojd() Function
PHP unixtojd() Function