w3resource
PHP Tutorial

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:

<?php
$j_date=frenchtojd(4,3,12);
echo($j_date);
?>

Sample Output:

2379950 

View the example in the browser

See also

PHP Function Reference

Previous: easter_days
Next: GregorianToJD



New Content: Composer: Dependency manager for PHP, R Programming


bedava porno