PHP

PHP Menu

PHP

frenchtojd() Function - Definition, Syntax, Parameters, Examples

Definition

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

Syntax

frenchtojd(month, day, year)

Parameters

Parameter Description
month Required. Specifies the month as a number from 1 to 13.
day Required. Specifies the day as a number from 1 to 30.
year Required. Specifies the year as a number from 1 to 14.

Example

<?php

$jd = frenchtojd(6, 12, 21);
echo $jd . "<br>";
echo jdtofrench($jd);

Introduction

PHP Basics

PHP Advance

PHP OOP

PHP Functions and Methods