PHP jdtofrench() Function
In this chapter you will learn:
- Definition for PHP jdtofrench() Function
- Syntax for PHP jdtofrench() Function
- Parameter for PHP jdtofrench() Function
- Return value for PHP jdtofrench() Function
- 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:
- Definition for PHP jdtogregorian() Function
- Syntax for PHP jdtogregorian() Function
- Parameter for PHP jdtogregorian() Function
- Return value for PHP jdtogregorian() Function
- Example - Convert a Gregorian date to a Julian Day Count and back to a Gregorian date
Home » PHP Tutorial » PHP Calendar Functions