cal_from_jd: getting Calendar from Julian day count

By using Julian day count ( Integer value ) we can get the calendar details like month , day , day of the week, year etc ( in the form of an array ). Syntax is here.
cal_from_jd(julian_day INT,CAL_GREGORIAN)
Here is an example
$jdday_number = cal_to_jd(CAL_JULIAN,12,4,2013);
print_r(cal_from_jd($jdday_number,CAL_JULIAN));
The output is here
Array ( [date] => 12/4/2013 [month] => 12 [day] => 4 [year] => 2013 [dow] => 2 [abbrevdayname] => Tue [dayname] => Tuesday [abbrevmonth] => Dec [monthname] => December )
Your Rating





Post Comment This is for short comments only. Use the forum for more discussions.




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