cal_from_jd: getting Calendar from Julian day count
PHP
Calendar
$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 )
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)
Demo of how Unix timestamp is used to generate Julian Day and Calendar →
← Calendar Functions
← Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
plus2net.com