PHP JDToGregorian

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

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 :

  1. $julian_day_count = jdtogregorian(2379950);  

  2. echo($julian_day_count);  

  3. ?>  

Output :

12/25/1803