PHP JulianToJD

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

PHP : Juliantojd() function

Description

The Juliantojd() function converts a Julian calendar date to a Julian day count. The range cover between 4713 B.C. to 9999 A.D.

Version

(PHP 4 and above)

Syntax

jewishtojd(month, day, year)

Parameters

Name

Description

Required /
Optional

Type

month

Specified month (1 (for January) to 12 (for December) ) from the Julian calendar.

Required

Integer

day

Specified day ( from 1 to 31 ) from the Julian calendar.

Required

Integer

year

Specified year (a number between -4713 and 9999 ) from the Julian calendar.

Required

Integer

Return value

The Julian day for the given Julian date as an integer.

Value Type : Integer.

Example :

  1. echo juliantojd (4, 11, 54);  

  2. ?>  

Output :

1740882