Curriculum
Course: PHP Basic
Login

Curriculum

PHP Basic

PHP Install

0/1

PHP Casting

0/1

PHP Constants

0/1

PHP Magic Constants

0/1

PHP Operators

0/1

PHP Reference

0/276
Text lesson

jdtofrench()

Example

Convert a French Republican date to a Julian Day Count and then convert it back to a French Republican date.

<?php
$jd=frenchtojd(3,3,14);
echo $jd . “<br>”;
echo jdtofrench($jd);
?>

Definition and Usage

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

 

Tip: Use the frenchtojd() function to convert a French Republican date to a Julian Day Count.

Syntax

jdtofrench(jd);

Parameter Values

 

Parameter

Description

jd

Required. A Julian Day Number.

Technical Details

Return Value:

Returns a French Republican date in the format “month/day/year”.

PHP Version:

4+