w3resource
PHP Tutorial

PHP: jdtogregorian() function

Description

The jdtogregorian() function is used to convert a Julian day count to a Gregorian date.

Version:

(PHP 4 and above)

Syntax:

jdtogregorian(julian_day_count)

Parameter:

Name Description Required /
Optional
Type
julian_day_count A Julian day number. Required Integer

Return value:

The gregorian date as a string in "month/day/year" format.

Value Type: String.

Example:

<?php
$julian_day_count = jdtogregorian(2379950);
echo($julian_day_count);
?>

Sample Output:

12/25/1803

View the example in the browser

See also

PHP Function Reference

Previous: JDToFrench
Next: jdtojewish



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


bedava porno