PHP juliantojd() Function

PHP juliantojd Function


Definition :

The juliantojd () function is a PHP built-in function used to convert the Julian calendar date to the Julian day count. The date range for the Julian calendar is valid from the Julian calendar 4713 BC. C. (before Christ) until 9999 d. C. 

Syntax
   juliantojd(month,day,year);
Parameter:
Parameter Description
month Required. Specifies the month as a number from 1 to 12
day Required. Specifies the day as a number from 1 to 31
year Required. Specifies the year as a number between -4713 and 9999

Given below example convert a Julian date to a Julian Day Count and back to a Julian date: 

Output : 2454285
              6/20/2007