PHP cal_from_jd() 函數(shù) |
發(fā)布時間: 2012/9/8 16:11:45 |
定義和用法cal_from_jd() 函數(shù)把儒略日計數(shù)轉(zhuǎn)換為指定歷法的日期。 語法cal_from_jd(jd,calendar)
例子<?php
$d=unixtojd(mktime(0,0,0,1,18,2006));
print_r(cal_from_jd($d,CAL_GREGORIAN));
?> 電腦學習網(wǎng)站www.boydavid.com
輸出:
Array
(
[date] => 1/18/2006
[month] => 1
[day] => 18
[year] => 2006
[dow] => 3
[abbrevdayname] => Wed
[dayname] => Wednesday
[abbrevmonth] => Jan
[monthname] => January
)
本文出自:億恩科技【1tcdy.com】 |