cal_from_jd

It converts from Julian Day Count to a supported calendar

Example

<?php
echo “<pre>”;
$day = unixtojd(mktime(0, 0, 0, 5, 17, 1984));
print_r(cal_from_jd($day, CAL_GREGORIAN));
?>

Output

Array
(
[date] => 5/17/1984
[month] => 5
[day] => 17
[year] => 1984
[dow] => 4
[abbrevdayname] => Thu
[dayname] => Thursday
[abbrevmonth] => May
[monthname] => May
)

Share