PHP FrenchToJD

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

PHP : frenchtojd() function

Description

The frenchtojd() function converts a given date from the french republican calendar date to a Julian day count.

Version

(PHP 4 and above)

Syntax

frenchtojd(month, day, year )

Parameters

Name

Description

Required /
Optional

Type

month

Given month (French Republican Calendar month number).

Required

Integer

day

Given day (French Republican Calendar day of the month) between 1 to 30.

Required

Integer

year

Given year (French Republican Calendar year) between 1 and 14.

Required

Integer

Return value

The julian day for the given french republican date.

Value Type : Integer

Example :

  1. $j_date=frenchtojd(4,3,12);  

  2. echo($j_date);  

  3. ?>  

Output :

2379950