What is Calendar cal to jd in PHP

In this article I am going to explain about cal_to_jd function in PHP.
  • 1865

PHP Calendar cal_to_jd() Function

The calendar cal_to_jd converts a given date to Julian day count.

Syntax of  cal_to_jd function

cal_to_jd(calendar,month,day,year)

Parameters in cal_to_jd function

It have four parameters and all parameters is required:

Parameter Description
calendar It is used for calculation.
month It specified month in selected calendar.
day It specified the day.
year It specified year in selected calendar.

Example of Calendar cal_to_id function

<html>

<body>

<?php

$calltojd=cal_to_jd(CAL_GREGORIAN,8,20,2012);

echo($calltojd);

?>

</body>

</html>

 

Output:

cal_to_jd.jpg

You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.