w3resource

PHP: frenchtojd() function

Convert a French Republican Calendar date to Julian Day Count

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



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://w3resource.com/php/function-reference/FrenchToJD.php