cal_to_jd: getting Julian day count

We can get Julian day count by using cal_to_jd function.
cal_to_jd('calendar', month, day , year )
Here is an example.
$day = cal_to_jd(CAL_GREGORIAN,2,2,2103);
echo $day;
The output is 2489197

In the above code the list of calendar are CAL_GREGORIAN, CAL_JULIAN, CAL_JEWISH and CAL_FRENCH.

Read how cal_to_jd function is used to get weekday
Your Rating





Post your comments , suggestion , error , requirements etc here .




HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer